diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-21 23:36:43 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-21 23:36:43 +0000 |
commit | 7af4492c3bc7aebbdda18f4277f9df9914c0f71f (patch) | |
tree | 89c2888ff878d15d217f86dd57a86cd7d56c49db | |
parent | 62181fe6e7b3d0f4e2ba91e017a44bf847a5c20c (diff) | |
download | openttd-7af4492c3bc7aebbdda18f4277f9df9914c0f71f.tar.xz |
(svn r6886) -Be anal for the time being about string-wannabe-buffer-overflows
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |