We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fed66d commit ce1f9dfCopy full SHA for ce1f9df
1 file changed
include/jwt-cpp/jwt.h
@@ -23,6 +23,7 @@
23
24
#include <algorithm>
25
#include <chrono>
26
+#include <climits>
27
#include <cmath>
28
#include <cstring>
29
#include <functional>
@@ -3042,7 +3043,7 @@ namespace jwt {
3042
3043
std::string out;
3044
out.reserve(wide.size());
3045
for (wchar_t wc : wide) {
- char mb[MB_CUR_MAX];
3046
+ char mb[MB_LEN_MAX];
3047
std::size_t n = std::wcrtomb(mb, wc, &state);
3048
if (n != static_cast<std::size_t>(-1)) out.append(mb, n);
3049
}
0 commit comments