]> granicus.if.org Git - python/commitdiff
Fix [ 583477 ] wrong dest size.
authorMark Hammond <mhammond@skippinet.com.au>
Wed, 29 Jan 2003 22:38:29 +0000 (22:38 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Wed, 29 Jan 2003 22:38:29 +0000 (22:38 +0000)
Note this code is not used by the core on Win32, but in a block used only
by Windows CE.

PC/getpathp.c

index ed0a75552236b197527c50327ca66a1bf1a579ff..d61d3ea5caf4d333594f694ec98b592e58df792c 100644 (file)
@@ -321,7 +321,7 @@ getpythonregpath(HKEY keyBase, int skipcore)
                if (retval)
                        WideCharToMultiByte(CP_ACP, 0, 
                                        dataBuf, -1, /* source */ 
-                                       retval, dataSize+1, /* dest */
+                                       retval, reqdSize+1, /* dest */
                                        NULL, NULL);
                free(dataBuf);
 #else