Skip to content

Commit 32580bd

Browse files
committed
add null character for BLOB when input is string
1 parent b90f282 commit 32580bd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/gstype_python.i

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,6 @@ static bool convertObjectToBlob(PyObject* value, size_t* size, void** data) {
438438
if (!SWIG_IsOK(res)) {
439439
return false;
440440
}
441-
//Ignore null character
442-
*size = *size - 1;
443441
*data = malloc(*size);
444442
memcpy(*data, blobData, *size);
445443
cleanString(blobData, alloc);

0 commit comments

Comments
 (0)