(svn r6886) -Be anal for the time being about string-wannabe-buffer-overflows

This commit is contained in:
Darkvater 2006-10-21 23:36:43 +00:00
parent 62181fe6e7
commit 7af4492c3b

View File

@ -42,7 +42,7 @@ char* strecpy(char* dst, const char* src, const char* last)
assert(dst <= last);
for (; *src != '\0' && dst != last; ++dst, ++src) *dst = *src;
*dst = '\0';
#if 0
#if 1
if (dst == last && *src != '\0') {
error("String too long for destination buffer");
}