summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp6
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;
}