summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-21 23:36:43 +0000
committerDarkvater <darkvater@openttd.org>2006-10-21 23:36:43 +0000
commit7af4492c3bc7aebbdda18f4277f9df9914c0f71f (patch)
tree89c2888ff878d15d217f86dd57a86cd7d56c49db
parent62181fe6e7b3d0f4e2ba91e017a44bf847a5c20c (diff)
downloadopenttd-7af4492c3bc7aebbdda18f4277f9df9914c0f71f.tar.xz
(svn r6886) -Be anal for the time being about string-wannabe-buffer-overflows
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 50625c2fb..297e931fb 100644
--- a/string.c
+++ b/string.c
@@ -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");
}