Correction to previous commit, sorry about that. :/
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 22 May 2014 12:03:32 +0000 (14:03 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 22 May 2014 12:03:32 +0000 (14:03 +0200)
source/blender/makesrna/intern/rna_packedfile.c

index ac4db49fd06d3015f000860ce9bf7e8808f82116..d0c0ed25d22c5bf1438676f0c58e3c25a9d7544c 100644 (file)
@@ -49,7 +49,7 @@ void rna_PackedImage_data_get(PointerRNA *ptr, char *value)
 {
        PackedFile *pf = (PackedFile *)ptr->data;
        memcpy(value, pf->data, (size_t)pf->size);
-       value[pf->size + 1] = '\0';
+       value[pf->size] = '\0';
 }
 
 int rna_PackedImage_data_len(PointerRNA *ptr)