[Toybox] [PATCH] add missing argument to error_exit in xstrncat

enh enh at google.com
Wed Feb 25 21:26:32 PST 2015


diff --git a/lib/xwrap.c b/lib/xwrap.c
index 0a2b38f..14703a7 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -24,7 +24,7 @@ void xstrncat(char *dest, char *src, size_t size)
   long len = strlen(src);

   if (len+strlen(dest)+1 > size)
-    error_exit("'%s%s' > %ld bytes", src, (long)size);
+    error_exit("'%s%s' > %ld bytes", dest, src, (long)size);
   strcpy(dest+len, src);
 }

 1424928392.0


More information about the Toybox mailing list