Skip to content
Snippets Groups Projects
Commit d8756323 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

oops

parent d2292481
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ static wchar_t *wbuf[2] = {NULL, NULL}; ...@@ -143,7 +143,7 @@ static wchar_t *wbuf[2] = {NULL, NULL};
static void setwbuf(int i, const char *f) static void setwbuf(int i, const char *f)
{ {
if(i != 0 || i != 1) return; if(i != 0 && i != 1) return;
size_t l = strlen(f); size_t l = strlen(f);
unsigned wn = utf8toUtf16(f, (unsigned) l, NULL, 0) + 1; unsigned wn = utf8toUtf16(f, (unsigned) l, NULL, 0) + 1;
wbuf[i] = (wchar_t*)realloc(wbuf[i], sizeof(wchar_t)*wn); wbuf[i] = (wchar_t*)realloc(wbuf[i], sizeof(wchar_t)*wn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment