diff options
author | rubidium <rubidium@openttd.org> | 2011-03-03 21:43:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-03-03 21:43:24 +0000 |
commit | 59e42ea17823d5ab1a46808965d74a2b27a04ea4 (patch) | |
tree | d9a7c204fb555f5b39020f5e1a37bd34d75f12be /src/string.cpp | |
parent | 25c7bdde662fc757be58d7dec52112439db67469 (diff) | |
download | openttd-59e42ea17823d5ab1a46808965d74a2b27a04ea4.tar.xz |
(svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms
Diffstat (limited to 'src/string.cpp')
-rw-r--r-- | src/string.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.cpp b/src/string.cpp index 46ed9e9d7..1ba6f15fb 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -151,11 +151,11 @@ char *strecpy(char *dst, const char *src, const char *last) *dst = '\0'; if (dst == last && *src != '\0') { -#ifdef STRGEN +#if defined(STRGEN) || defined(SETTINGSGEN) error("String too long for destination buffer"); -#else /* STRGEN */ +#else /* STRGEN || SETTINGSGEN */ DEBUG(misc, 0, "String too long for destination buffer"); -#endif /* STRGEN */ +#endif /* STRGEN || SETTINGSGEN */ } return dst; } |