win32compat: fix aacenc_printf() not to write junk characters v0.5.4
authornu774 <honeycomb77@gmail.com>
Wed, 30 Jul 2014 05:09:12 +0000 (14:09 +0900)
committernu774 <honeycomb77@gmail.com>
Wed, 30 Jul 2014 05:09:12 +0000 (14:09 +0900)
src/compat_win32.c
version.h

index 4e3776c06841beff6d54eae4a49d13769a5ec3d1..44822816afed5554bec473a6cb3f65ab5f97c5e0 100644 (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;
index 61b6c15804514ebb53204b19b058dfeb795aeb1f..074906b935693f835cd4a7f025654e3eb08cabfa 100644 (file)
--- 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
This page took 0.01165 seconds and 4 git commands to generate.