- Timestamp:
- 04/19/12 15:55:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/modules/KMLMeshWrite/KMLMeshWrite.cpp
r12050 r12060 55 55 if (notesi && mxIsChar(notesi) && mxGetNumberOfElements(notesi)) { 56 56 if (!notes) { 57 notes=(char *) mxMalloc((mxGetNumberOfElements(notesi)+1)*sizeof(char));57 notes=(char *) xmalloc((mxGetNumberOfElements(notesi)+1)*sizeof(char)); 58 58 mxGetString(notesi,notes,mxGetNumberOfElements(notesi)+1); 59 59 } 60 60 else { 61 61 /* note that strlen does not include trailing null */ 62 notes=(char *) mxRealloc(notes,(strlen(notes)+1+mxGetNumberOfElements(notesi)+1)*sizeof(char));62 notes=(char*)xrealloc(notes,(strlen(notes)+1+mxGetNumberOfElements(notesi)+1)*sizeof(char)); 63 63 strcat(notes,"\n"); 64 64 mxGetString(notesi,¬es[strlen(notes)],mxGetNumberOfElements(notesi)+1);
Note:
See TracChangeset
for help on using the changeset viewer.