[pypy-svn] r50713 - pypy/dist/pypy/module/fcntl
arigo at codespeak.net
arigo at codespeak.net
Thu Jan 17 17:47:10 CET 2008
Author: arigo
Date: Thu Jan 17 17:47:10 2008
New Revision: 50713
Modified:
pypy/dist/pypy/module/fcntl/interp_fcntl.py
Log:
Fix fcntl.ioctl() in the same way. The appropriate
test-that-failed-before-this-fix is in test_termios.
Modified: pypy/dist/pypy/module/fcntl/interp_fcntl.py
==============================================================================
--- pypy/dist/pypy/module/fcntl/interp_fcntl.py (original)
+++ pypy/dist/pypy/module/fcntl/interp_fcntl.py Thu Jan 17 17:47:10 2008
@@ -263,7 +263,7 @@
ll_arg = rffi.str2charp(arg)
rv = ioctl_str(fd, op, ll_arg)
- arg = rffi.charp2str(ll_arg)
+ arg = rffi.charpsize2str(ll_arg, len(arg))
lltype.free(ll_arg, flavor='raw')
if rv < 0:
raise OperationError(space.w_IOError,
More information about the Pypy-commit
mailing list