Page MenuHome

Text3d.c-lenfix.patch

Authored By
Gergely Erdelyi (dyce)
Nov 13 2013, 1:03 PM
Size
906 B
Subscribers
None

Text3d.c-lenfix.patch

Index: Text3d.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Text3d.c,v
retrieving revision 1.8
diff -u -r1.8 Text3d.c
--- Text3d.c 4 Jun 2005 16:22:50 -0000 1.8
+++ Text3d.c 6 Jun 2005 13:55:34 -0000
@@ -491,11 +491,12 @@
if( !PyArg_ParseTuple( args, "s", &text ) )
return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
"expected string argument" ) );
- if (self) {
- MEM_freeN (self->curve->str);
- self->curve->str= MEM_mallocN (strlen (text)+1, "str");
- strcpy (self->curve->str, text);
- self->curve->pos= strlen (text);
+ if( self ) {
+ MEM_freeN( self->curve->str );
+ self->curve->str = MEM_mallocN( strlen (text)+1, "str" );
+ strcpy( self->curve->str, text );
+ self->curve->pos = strlen ( text );
+ self->curve->len = strlen ( text );
}
Py_INCREF( Py_None );
return Py_None;

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
48/f8/cd12052234cb91ece351214edb6a

Event Timeline