Commit 899bf0ae authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: exclude an unlikely error message from the tiny version

No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment