Changeset 110985


Ignore:
Timestamp:
Sep 12, 2013, 10:35:16 PM (6 years ago)
Author:
toby@…
Message:

pextlib1.0: fix overlap check aborts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/pextlib1.0/strsed.c

    r68675 r110985  
    663663            if (need > 0){
    664664                more_space(need);
    665                 strncpy(new_str + new_pos, str, need);
     665                memmove(new_str + new_pos, str, need);
    666666                new_pos += need;
    667667            }
     
    757757     */
    758758    more_space(str_len);
    759     (void) strcpy(new_str + new_pos, str);
     759    (void) memmove(new_str + new_pos, str, strlen(str) + 1);
    760760    RETURN(new_str);
    761761}
Note: See TracChangeset for help on using the changeset viewer.