mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-20 14:02:41 +02:00
Problem: formatting broken
Solution: run make clang-format-diff
This commit is contained in:
@@ -877,8 +877,8 @@ char *widechar_to_utf8 (const wchar_t *widestring)
|
|||||||
nch = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, 0, 0, NULL, NULL);
|
nch = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, 0, 0, NULL, NULL);
|
||||||
if (nch > 0) {
|
if (nch > 0) {
|
||||||
utf8 = (char *) malloc ((nch + 1) * sizeof (char));
|
utf8 = (char *) malloc ((nch + 1) * sizeof (char));
|
||||||
n = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, utf8,
|
n = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, utf8, nch, NULL,
|
||||||
nch, NULL, NULL);
|
NULL);
|
||||||
utf8[nch] = 0;
|
utf8[nch] = 0;
|
||||||
}
|
}
|
||||||
return utf8;
|
return utf8;
|
||||||
|
Reference in New Issue
Block a user