1.1 --- a/sourcemm/util.cpp Thu Aug 17 02:41:42 2006 +0000
1.2 +++ b/sourcemm/util.cpp Wed Aug 23 16:41:49 2006 +0000
1.3 @@ -58,9 +58,8 @@
1.4 i++;
1.5
1.6 // If whitespace chars in buffer then adjust string so first non-whitespace char is at start of buffer
1.7 - // :TODO: change this to not use memcpy()!
1.8 if (i != buffer)
1.9 - memcpy(buffer, i, (strlen(i) + 1) * sizeof(char));
1.10 + memmove(buffer, i, (strlen(i) + 1) * sizeof(char));
1.11 }
1.12 }
1.13
1.14 @@ -95,7 +94,7 @@
1.15 }
1.16 }
1.17
1.18 -/* UTIL_TrimLeft
1.19 +/* UTIL_TrimRight
1.20 * Removes whitespace characters from right side of string
1.21 */
1.22 void UTIL_TrimRight(char *buffer)