diff --git a/PC/getpathp.c b/PC/getpathp.c index ed0a7555223..d61d3ea5caf 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