Skip to content
Snippets Groups Projects
Commit 7a364bb8 authored by Bill Medland's avatar Bill Medland Committed by Alexandre Julliard
Browse files

Fixed vsnprintf return value check.

parent d3212f91
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ static char buf[4*1024];
len = vsnprintf(buf, sizeof(buf), format, valist);
va_end(valist);
if (len <= -1) {
if (len <= -1 || len >= sizeof(buf)) {
len = sizeof(buf) - 1;
buf[len] = 0;
buf[len - 1] = buf[len - 2] = buf[len - 3] = '.';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment