Changeset 700 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical
- Timestamp:
- Jul 21, 2008, 1:04:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h
r637 r700 84 84 { 85 85 buffer = (char *)realloc( buffer, length + str.size() + 1 ); 86 lstrcpy( buffer + length, str.c_str() );86 strcpy( buffer + length, str.c_str() ); 87 87 length += (int)str.size(); 88 88 } … … 90 90 { 91 91 buffer = (char *)realloc( buffer, length + str.size() + 1 ); 92 lstrcpy( buffer + length, &str[0] );92 strcpy( buffer + length, &str[0] ); 93 93 length += (int)str.size(); 94 94 } … … 97 97 98 98 static void Text::SlideString(char *buffer, int slide){ 99 char *temp; 100 temp=(char *)malloc(lstrlen(buffer)+1); 101 lstrcpy(temp,buffer); 102 lstrcpy(buffer+slide,temp); 103 free(temp); 99 memmove(buffer+slide, buffer, strlen(buffer)+1); 104 100 } 105 101 }; … … 213 209 void _ResetLength() 214 210 { 215 length = lstrlen( buffer );211 length = strlen( buffer ); 216 212 } 217 213 … … 231 227 void operator = ( const BasicSource &source ){ 232 228 Realloc( source.length ); 233 lstrcpy( buffer, source.buffer );229 strcpy( buffer, source.buffer ); 234 230 } 235 231
Note:
See TracChangeset
for help on using the changeset viewer.