Skip to content

Commit

Permalink
compat_win32: fix aa_fprintf() not to write junk chars in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
nu774 committed Jul 30, 2014
1 parent 66f3213 commit 0eec982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compat_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int aa_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;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef VERSION_H
#define VERSION_H
const char *m4acut_version = "0.1.0";
const char *m4acut_version = "0.1.1";
#endif

0 comments on commit 0eec982

Please sign in to comment.