summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/io.c b/osdep/io.c
index 26507eccfd..807ec0a0d0 100644
--- a/osdep/io.c
+++ b/osdep/io.c
@@ -156,9 +156,9 @@ static int mp_vfprintf(FILE *stream, const char *format, va_list args)
if (buf) {
vsnprintf(buf, len, format, args);
wchar_t *out = mp_from_utf8(NULL, buf);
- size_t len = wcslen(out);
+ size_t out_len = wcslen(out);
talloc_free(buf);
- done = WriteConsoleW(wstream, out, len, NULL, NULL);
+ done = WriteConsoleW(wstream, out, out_len, NULL, NULL);
talloc_free(out);
}
} else {