util/TruncateString: rename CopyString() to CopyTruncateString()
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
#include <string.h>
|
||||
|
||||
char *
|
||||
CopyString(char *gcc_restrict dest, const char *gcc_restrict src,
|
||||
size_t size) noexcept
|
||||
CopyTruncateString(char *gcc_restrict dest, const char *gcc_restrict src,
|
||||
size_t size) noexcept
|
||||
{
|
||||
size_t length = strlen(src);
|
||||
if (length >= size)
|
||||
|
@@ -44,6 +44,6 @@
|
||||
*/
|
||||
gcc_nonnull_all
|
||||
char *
|
||||
CopyString(char *dest, const char *src, size_t size) noexcept;
|
||||
CopyTruncateString(char *dest, const char *src, size_t size) noexcept;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user