diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
commit | 21c39515903c34bc6428a544c88cf1c100786847 (patch) | |
tree | c9d0465e24cc3148c84c2fee191f2b1bfc71b841 /gl/mbtowc-impl.h | |
parent | ed01d534474cc640515f1d5155349f14090aafe9 (diff) | |
parent | 5d7d620903a2fb40f8cd3140081bfb7ceaf125d5 (diff) | |
download | monitoring-plugins-21c39515903c34bc6428a544c88cf1c100786847.tar.gz |
Merge branch 'master' into check_swap_again
Diffstat (limited to 'gl/mbtowc-impl.h')
-rw-r--r-- | gl/mbtowc-impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/mbtowc-impl.h b/gl/mbtowc-impl.h index 39b977be..92efb4a7 100644 --- a/gl/mbtowc-impl.h +++ b/gl/mbtowc-impl.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Convert multibyte character to wide character. | 1 | /* Convert multibyte character to wide character. |
2 | Copyright (C) 2011-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2011-2024 Free Software Foundation, Inc. |
3 | Written by Bruno Haible <bruno@clisp.org>, 2011. | 3 | Written by Bruno Haible <bruno@clisp.org>, 2011. |
4 | 4 | ||
5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
@@ -30,7 +30,7 @@ mbtowc (wchar_t *pwc, const char *s, size_t n) | |||
30 | wchar_t wc; | 30 | wchar_t wc; |
31 | size_t result; | 31 | size_t result; |
32 | 32 | ||
33 | memset (&state, 0, sizeof (mbstate_t)); | 33 | mbszero (&state); |
34 | result = mbrtowc (&wc, s, n, &state); | 34 | result = mbrtowc (&wc, s, n, &state); |
35 | if (result == (size_t)-1 || result == (size_t)-2) | 35 | if (result == (size_t)-1 || result == (size_t)-2) |
36 | { | 36 | { |