(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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user