commit 899bf0ae3a6c63602523bd98da18bf0491e6e731
parent 1f7384ebd2ac5fcf73a7d8b6aa980335bf551410
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 5 Mar 2018 12:45:19 +0100
tweaks: exclude an unlikely error message from the tiny version
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/utils.c b/src/utils.c
@@ -378,9 +378,10 @@ char *mallocstrncpy(char *dest, const char *src, size_t n)
if (src == NULL)
src = "";
+#ifndef NANO_TINY
if (src == dest)
fprintf(stderr, "\r*** Copying a string to itself -- please report a bug ***");
-
+#endif
dest = charealloc(dest, n);
strncpy(dest, src, n);