aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libarchive/libarchive/archive_check_magic.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libarchive/libarchive/archive_check_magic.c')
-rw-r--r--contrib/libarchive/libarchive/archive_check_magic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libarchive/libarchive/archive_check_magic.c b/contrib/libarchive/libarchive/archive_check_magic.c
index 89e631442749..9a69bd92b641 100644
--- a/contrib/libarchive/libarchive/archive_check_magic.c
+++ b/contrib/libarchive/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;