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

This commit is contained in:
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; enum dllmode res;
len = strlen(in); len = strlen(in);
out = HeapAlloc(GetProcessHeap(), 0, len); out = HeapAlloc(GetProcessHeap(), 0, len + 1);
/* remove the spaces */ /* remove the spaces */
for (i = j = 0; i <= len; ++i) { for (i = j = 0; i <= len; ++i) {