(svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms

This commit is contained in:
rubidium
2011-03-03 21:43:24 +00:00
parent 25c7bdde66
commit 59e42ea178
4 changed files with 10 additions and 6 deletions

View File

@@ -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;
}