changeset 4914:31e5277333c9 draft

(svn r6886) -Be anal for the time being about string-wannabe-buffer-overflows
author Darkvater <Darkvater@openttd.org>
date Sat, 21 Oct 2006 23:36:43 +0000
parents e7ede844a9c4
children 61c3f4998628
files string.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/string.c
+++ b/string.c
@@ -42,7 +42,7 @@
 	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");
 	}