[CMD]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 26 Apr 2015 05:31:16 +0000 (05:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 26 Apr 2015 05:31:16 +0000 (05:31 +0000)
- Account for null terminator returned from RegQueryInfoKey
CORE-6976

svn path=/trunk/; revision=67430

reactos/base/shell/cmd/assoc.c

index d78a225..133785b 100644 (file)
@@ -116,6 +116,7 @@ PrintAllAssociations()
         return -2;
     }
 
+    extLength++;
     extName = cmd_alloc(extLength * sizeof(TCHAR));
 
     for(keyCtr = 0; keyCtr < numKeys; keyCtr++)