Commit ce6297aa authored by Jun Hiroe's avatar Jun Hiroe

Fix indents

parent 6d55e770
...@@ -56,7 +56,7 @@ mrb_utf8_from_locale(const char *str, size_t len) ...@@ -56,7 +56,7 @@ mrb_utf8_from_locale(const char *str, size_t len)
if (len == 0) if (len == 0)
return strdup(""); return strdup("");
if (len == -1) if (len == -1)
len = strlen(str); len = strlen(str);
wcssize = MultiByteToWideChar(GetACP(), 0, str, len, NULL, 0); wcssize = MultiByteToWideChar(GetACP(), 0, str, len, NULL, 0);
wcsp = (wchar_t*) malloc((wcssize + 1) * sizeof(wchar_t)); wcsp = (wchar_t*) malloc((wcssize + 1) * sizeof(wchar_t));
if (!wcsp) if (!wcsp)
...@@ -86,7 +86,7 @@ mrb_locale_from_utf8(const char *utf8, size_t len) ...@@ -86,7 +86,7 @@ mrb_locale_from_utf8(const char *utf8, size_t len)
if (len == 0) if (len == 0)
return strdup(""); return strdup("");
if (len == -1) if (len == -1)
len = strlen(utf8); len = strlen(utf8);
wcssize = MultiByteToWideChar(CP_UTF8, 0, utf8, len, NULL, 0); wcssize = MultiByteToWideChar(CP_UTF8, 0, utf8, len, NULL, 0);
wcsp = (wchar_t*) malloc((wcssize + 1) * sizeof(wchar_t)); wcsp = (wchar_t*) malloc((wcssize + 1) * sizeof(wchar_t));
if (!wcsp) if (!wcsp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment