diff --git a/src/utils.c b/src/utils.c
index dcf4014c67cd2fe5ef52509b2c1699d64578d715..00849c81d00167d35f373e24c37d915dc3463ec3 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);