--- trunk/src/OEMisc.c 2006/03/24 13:36:54 1 +++ trunk/src/OEMisc.c 2006/03/27 12:47:50 10 @@ -42,9 +42,7 @@ if (n < 0) return NULL; - result = (wchar_t*)malloc ((n+1) * sizeof *result); - if (!result) - abort (); + result = (wchar_t*)xcalloc (1, (n+1) * sizeof *result); n = MultiByteToWideChar (CP_UTF8, 0, string, -1, result, n); if (n < 0) {