aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-07-21 16:25:22 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:38 -0300
commit0b6bafdd447f56c9910a41f039f9ed1431af04ee (patch)
treea7167506551c9b0f701c745329fecb69030bc59b /PySide
parent673a7d1bccdaa522b8b8d9aee48cb6d0c0c5a342 (diff)
Fix bug 934 - "A __getitem__ of QByteArray behaves strange"
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 b94832ad0..fe3849233 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1885,7 +1885,7 @@
char res[2];
res[0] = %CPPSELF.at(_i);
res[1] = 0;
- return PyString_FromString(res);
+ return PyString_FromStringAndSize(res, 1);
}
</inject-code>
</add-function>