Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 5aee5ce9a513a3e7ea53cdb5bdf9c104 > files > 2

sharutils-4.15.2-2.1.mga6.src.rpm

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);