diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-08-31 17:43:45 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:50 -0300 |
commit | 9afe76796d365978ee4be04e195cc5ec43758868 (patch) | |
tree | 0911ef266c6999663e6d62d7cbc48a977e94e733 /PySide/QtCore | |
parent | 08d202e824ffc6221bd426084ac169324808e9da (diff) |
Fix bug 944 - "QIODevice.readData must use qmemcpy instead of qstrncpy"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 71c957240..8271a1b3e 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -2043,7 +2043,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> |