aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index 0a2b38ff..14703a72 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);
}