From: nu774 Date: Wed, 30 Jul 2014 05:09:12 +0000 (+0900) Subject: win32compat: fix aacenc_printf() not to write junk characters X-Git-Tag: v0.5.4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=a79a11ef998649d87f8428b9d07f6e637905b292;p=fdkaac.git win32compat: fix aacenc_printf() not to write junk characters --- diff --git a/src/compat_win32.c b/src/compat_win32.c index 4e3776c..4482281 100644 --- a/src/compat_win32.c +++ b/src/compat_win32.c @@ -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; diff --git a/version.h b/version.h index 61b6c15..074906b 100644 --- a/version.h +++ b/version.h @@ -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