Changeset 1528 for trunk/src/objects/RpChainHelper.c
- Timestamp:
- Jun 22, 2009, 3:16:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/objects/RpChainHelper.c
r1386 r1528 110 110 111 111 len = strlen((char*)from); 112 *to = (void*) malloc(len*sizeof(char) );113 str cpy((char*)(*to),(char*)from);112 *to = (void*) malloc(len*sizeof(char)+1); 113 strncpy((char*)(*to),(char*)from,len+1); 114 114 return 0; 115 115 }
Note: See TracChangeset
for help on using the changeset viewer.