aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-09-01 14:26:33 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:50 -0300
commite9de49255b6b4a1749b729a02e9fe643c66a042f (patch)
treedb7c0f2eafbd64b967bf6c32e4682a4f2d9c058c /PySide
parent8e43e10f4e901851069be5557ec0f3dad72dc954 (diff)
Fix QAbstractFileEngine read and readLine methods to accept data with null bytes.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/typesystem_core.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index f450a2901..6b8205e5a 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -2363,7 +2363,7 @@
%out = -1;
} else {
%out = PyString_GET_SIZE((PyObject*)%PYARG_0);
- qstrncpy(%1, PyString_AS_STRING((PyObject*)%PYARG_0), %out + 1);
+ memcpy(%1, PyString_AS_STRING((PyObject*)%PYARG_0), %out);
}
</conversion-rule>
</modify-argument>
@@ -2386,7 +2386,7 @@
%out = -1;
} else {
%out = PyString_GET_SIZE((PyObject*)%PYARG_0);
- qstrncpy(%1, PyString_AS_STRING((PyObject*)%PYARG_0), %out + 1);
+ memcpy(%1, PyString_AS_STRING((PyObject*)%PYARG_0), %out);
}
</conversion-rule>
</modify-argument>