STR #2505: Fixed double string conversion.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2011-01-07 13:28:42 +00:00
parent cdaff761f7
commit 8197ba8d9b

View File

@ -374,8 +374,10 @@ static const wchar_t *utf8reformat(const char *str, int& n)
lbuf = newn + 100;
if (buffer) free(buffer);
buffer = (wchar_t*)malloc(lbuf * sizeof(wchar_t));
}
n = fl_utf8towc(str, n, (wchar_t*)buffer, lbuf);
n = fl_utf8towc(str, n, (wchar_t*)buffer, lbuf);
} else {
n = newn;
}
return buffer;
}