diff --git a/src/arscan.c b/src/arscan.c index 9a0a7a0c..2dc39f7b 100644 --- a/src/arscan.c +++ b/src/arscan.c @@ -703,7 +703,7 @@ ar_scan (const char *archive, ar_member_func_t function, const void *arg) } #ifndef M_XENIX - sscanf (TOCHAR (member_header.ar_mode), "%o", &eltmode); + sscanf (TOCHAR (member_header.ar_mode), "%8o", &eltmode); eltsize = atol (TOCHAR (member_header.ar_size)); #else /* Xenix. */ eltmode = (unsigned short int) member_header.ar_mode;