summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2003-01-29 22:38:29 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2003-01-29 22:38:29 (GMT)
commit61bb35f440773d5c67f4054c5148be299232cba3 (patch)
tree03cbbc447252b29beb495f5b48195115b3384515
parentba884f3d221d7c8a74ca8a6799214b692a6135f5 (diff)
downloadcpython-61bb35f440773d5c67f4054c5148be299232cba3.zip
cpython-61bb35f440773d5c67f4054c5148be299232cba3.tar.gz
cpython-61bb35f440773d5c67f4054c5148be299232cba3.tar.bz2
Fix [ 583477 ] wrong dest size.
Note this code is not used by the core on Win32, but in a block used only by Windows CE.
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index ed0a755..d61d3ea 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -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