Remove strncopy from the core/logic bridge.

This commit is contained in:
David Anderson
2015-08-30 18:21:07 -07:00
parent 3786a2756b
commit a158205f30
10 changed files with 28 additions and 50 deletions
+1 -13
View File
@@ -1280,19 +1280,7 @@ done:
unsigned int strncopy(char *dest, const char *src, size_t count)
{
if (!count)
{
return 0;
}
char *start = dest;
while ((*src) && (--count))
{
*dest++ = *src++;
}
*dest = '\0';
return (dest - start);
return ke::SafeStrcpy(dest, count, src);
}
size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...)