Ignore:
Timestamp:
Jun 22, 2009, 3:16:39 PM (15 years ago)
Author:
dkearney
Message:

updating the objects code and adding some more examples describing how i want developers to use the objects. some of the objects don't work yet, like the tree, anything with an example should work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/objects/RpChainHelper.c

    r1386 r1528  
    110110
    111111    len = strlen((char*)from);
    112     *to = (void*) malloc(len*sizeof(char));
    113     strcpy((char*)(*to),(char*)from);
     112    *to = (void*) malloc(len*sizeof(char)+1);
     113    strncpy((char*)(*to),(char*)from,len+1);
    114114    return 0;
    115115}
Note: See TracChangeset for help on using the changeset viewer.