diff --git a/src/sixmem.c b/src/sixmem.c index 2818cfa..f1098fe 100644 --- a/src/sixmem.c +++ b/src/sixmem.c @@ -2,7 +2,7 @@ * Name: sixmem.c * Description: SI external memory function. * Author: cosh.cage#hotmail.com - * File ID: 0714231200H0422240734L00395 + * File ID: 0714231200H0422240734L00398 * License: GPLv2. */ #include "sixmem.h" @@ -52,6 +52,7 @@ void _siReadString(char * buf, FILE * fp) */ void _siReadWString(wchar_t * buf, FILE * fp) { + /* size_t i = 0; while ((i < BUFSIZ - 1) && (L'\0' != (*buf = fgetwc(fp)))) { @@ -59,6 +60,8 @@ void _siReadWString(wchar_t * buf, FILE * fp) ++i; } buf[i] = L'\0'; + */ + fgetws(buf, BUFSIZ - 1, fp); } /* Attention: This Is An Internal Function. No Interface for Library Users.