win32compat: fix aacenc_printf() not to write junk characters

This commit is contained in:
nu774 2014-07-30 14:09:12 +09:00
parent 70554c0791
commit a79a11ef99
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ int aacenc_fprintf(FILE *fp, const char *fmt, ...)
codepage_decode_wchar(CP_UTF8, s, &ws);
free(s);
fflush(fp);
WriteConsoleW(fh, ws, cnt, &nw, 0);
WriteConsoleW(fh, ws, wcslen(ws), &nw, 0);
free(ws);
}
return cnt;

View File

@ -1,4 +1,4 @@
#ifndef VERSION_H
#define VERSION_H
const char *fdkaac_version = "0.5.3";
const char *fdkaac_version = "0.5.4";
#endif