mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-20 13:54:14 +01:00
Hi there. Not much to see here.
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40287
This commit is contained in:
parent
547cc72ef5
commit
1faeb4cdf8
@ -58,9 +58,8 @@ void UTIL_TrimLeft(char *buffer)
|
||||
i++;
|
||||
|
||||
// If whitespace chars in buffer then adjust string so first non-whitespace char is at start of buffer
|
||||
// :TODO: change this to not use memcpy()!
|
||||
if (i != buffer)
|
||||
memcpy(buffer, i, (strlen(i) + 1) * sizeof(char));
|
||||
memmove(buffer, i, (strlen(i) + 1) * sizeof(char));
|
||||
}
|
||||
}
|
||||
|
||||
@ -95,7 +94,7 @@ void UTIL_TrimComments(char *buffer)
|
||||
}
|
||||
}
|
||||
|
||||
/* UTIL_TrimLeft
|
||||
/* UTIL_TrimRight
|
||||
* Removes whitespace characters from right side of string
|
||||
*/
|
||||
void UTIL_TrimRight(char *buffer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user