aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_check_magic.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_check_magic.c')
-rw-r--r--libarchive/archive_check_magic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_check_magic.c b/libarchive/archive_check_magic.c
index 288ce2338550..1f40072f81d8 100644
--- a/libarchive/archive_check_magic.c
+++ b/libarchive/archive_check_magic.c
@@ -54,7 +54,7 @@ errmsg(const char *m)
ssize_t written;
while (s > 0) {
- written = write(2, m, strlen(m));
+ written = write(2, m, s);
if (written <= 0)
return;
m += written;