Index: sharutils-4.15.2/src/unshar.c =================================================================== --- sharutils-4.15.2/src/unshar.c +++ sharutils-4.15.2/src/unshar.c 2018-03-12 00:50:47.049204309 +0100 @@ -240,7 +240,7 @@ off_t position = ftello (file); /* Read next line, fail if no more and no previous process. */ - if (!fgets (rw_buffer, BUFSIZ, file)) + if (!fgets (rw_buffer, rw_base_size, file)) { if (!start) error (0, 0, _("Found no shell commands in %s"), name);