Author: Matti Picus <[email protected]>
Branch: winconsoleio
Changeset: r97497:bf4120ce59b6
Date: 2019-09-16 20:25 +0300
http://bitbucket.org/pypy/pypy/changeset/bf4120ce59b6/
Log: fix copy-paster
diff --git a/pypy/module/_io/interp_win32consoleio.py
b/pypy/module/_io/interp_win32consoleio.py
--- a/pypy/module/_io/interp_win32consoleio.py
+++ b/pypy/module/_io/interp_win32consoleio.py
@@ -164,7 +164,7 @@
lltype.free(pname_buf, flavor='raw')
pname_buf = lltype.malloc(rffi.CWCHARP.TO, length, flavor='raw')
if pname_buf:
- length = win32traits.GetFullPathName(decoded_wstr,
rwin32.MAX_PATH, pname_buf, w_str_nullptr)
+ length = win32traits.GetFullPathName(decoded_wstr, length,
pname_buf, w_str_nullptr)
else:
length = 0
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit