From: Mark Hammond Date: Wed, 29 Jan 2003 22:38:29 +0000 (+0000) Subject: Fix [ 583477 ] wrong dest size. X-Git-Tag: v2.3c1~2184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61bb35f440773d5c67f4054c5148be299232cba3;p=python 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. --- diff --git a/PC/getpathp.c b/PC/getpathp.c index ed0a755522..d61d3ea5ca 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