Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37529944
en ru br
ALT Linux repos
S:5.21p-alt1_16

Group :: Archiving/Other
RPM: arc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: arc-5.21p-compiler-warn.patch
Download


diff -up arc-5.21p/marc.c~ arc-5.21p/marc.c
--- arc-5.21p/marc.c~	2010-08-07 15:06:42.000000000 +0200
+++ arc-5.21p/marc.c	2020-02-15 10:25:26.466829619 +0100
@@ -297,9 +297,9 @@ struct heads *hdr;		       /* storage fo
     char *i = hdr->name;	       /* string index */
     int n;			       /* index */
 
-    for(n=0; n<FNLEN; n++)	       /* fill name field */
+    for(n=0; n<(FNLEN-1); n++)	       /* fill name field */
 	 *i++ = 0176;		       /* impossible high value */
-    *--i = '\0';		       /* properly end the name */
+    *i++ = '\0';		       /* properly end the name */
 
     hdrver = 0;			       /* reset header version */
     if(readhdr(hdr,f))		       /* use normal reading logic */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin