From 899bf0ae3a6c63602523bd98da18bf0491e6e731 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 5 Mar 2018 12:45:19 +0100
Subject: [PATCH] tweaks: exclude an unlikely error message from the tiny
 version

---
 src/utils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c
index dcf4014c..00849c81 100644
--- 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);
 
-- 
GitLab