/[gpgoe]/trunk/src/OEMisc.c
ViewVC logotype

Diff of /trunk/src/OEMisc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by twoaday, Fri Mar 24 13:36:54 2006 UTC revision 10 by twoaday, Mon Mar 27 12:47:50 2006 UTC
# Line 42  utf8_to_native (const char *string) Line 42  utf8_to_native (const char *string)
42      if (n < 0)      if (n < 0)
43          return NULL;          return NULL;
44    
45      result = (wchar_t*)malloc ((n+1) * sizeof *result);      result = (wchar_t*)xcalloc (1, (n+1) * sizeof *result);
     if (!result)  
         abort ();  
46    
47      n = MultiByteToWideChar (CP_UTF8, 0, string, -1, result, n);      n = MultiByteToWideChar (CP_UTF8, 0, string, -1, result, n);
48      if (n < 0) {      if (n < 0) {

Legend:
Removed from v.9  
changed lines
  Added in v.10

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26