Fix bug 934 - "A __getitem__ of QByteArray behaves strange"
This commit is contained in:
parent
b2ec5cf607
commit
239ae999fa
2 changed files with 5 additions and 1 deletions
|
|
@ -1893,7 +1893,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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue