Ignore:
Timestamp:
Feb 28, 2010, 9:59:12 PM (11 years ago)
Author:
jmr@…
Message:

error checking, sprintf -> snprintf, strcpy -> strncpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/tclobjc1.0/tclobjc_types.m

    r53280 r64294  
    111111        /* objPtr->bytes must be allocated with Tcl_Alloc */
    112112        objPtr->bytes = Tcl_Alloc(length);
    113         strcpy(objPtr->bytes, string);
     113        strncpy(objPtr->bytes, string, length);
    114114        free(string);
    115115}
Note: See TracChangeset for help on using the changeset viewer.