reg.exe: Fix stack overflow on large registry keys.

This commit is contained in:
Jonathan Vollebregt 2014-09-01 15:05:30 +02:00 committed by Alexandre Julliard
parent 55e3ec650e
commit b823337f65
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static int reg_printfW(const WCHAR *msg, ...)
WCHAR msg_buffer[8192];
va_start(va_args, msg);
vsprintfW(msg_buffer, msg, va_args);
vsnprintfW(msg_buffer, 8192, msg, va_args);
va_end(va_args);
wlen = lstrlenW(msg_buffer);