winecfg: Fix string buffer length for override settings (Valgrind).

oldstable
Nikolay Sivov 2015-06-27 23:19:56 +03:00 committed by Alexandre Julliard
parent 74c3a4a7e7
commit d11b498c81
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ static enum dllmode string_to_mode(char *in)
enum dllmode res;
len = strlen(in);
out = HeapAlloc(GetProcessHeap(), 0, len);
out = HeapAlloc(GetProcessHeap(), 0, len + 1);
/* remove the spaces */
for (i = j = 0; i <= len; ++i) {