Show
Ignore:
Timestamp:
10/03/08 12:54:00 (3 months ago)
Author:
mwhitworth
Message:

Remove strcpy, replace calls to strcpy with strncpy, misc formatting fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/lib/string.c

    r1067 r1079  
    3232 
    3333SYMBOL_EXPORT(strncpy); 
    34  
    35 int strcpy(char* dest,char* src) 
    36 { 
    37         while ((*dest++=*src++)); 
    38         return 0; 
    39 } 
    40  
    41 SYMBOL_EXPORT(strcpy); 
    4234 
    4335int strncmp(const char* s1,const char* s2,int num) 
     
    198190         
    199191        ret = MemAlloc(strlen(name) + 1); 
    200         strcpy(ret, name); 
     192        strncpy(ret, name, strlen(name)); 
    201193         
    202194        return ret;