From a79a11ef998649d87f8428b9d07f6e637905b292 Mon Sep 17 00:00:00 2001 From: nu774 Date: Wed, 30 Jul 2014 14:09:12 +0900 Subject: [PATCH] win32compat: fix aacenc_printf() not to write junk characters --- src/compat_win32.c | 2 +- version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2