aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/typesystem_core.xml2
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>