Browse code

sigtool/sigtool.c: fix calculation of max signature length

Tomasz Kojm authored on 2011/08/03 22:42:29
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Aug  3 15:41:28 CEST 2011 (tk)
2
+----------------------------------
3
+ * sigtool/sigtool.c: fix calculation of max signature length
4
+
1 5
 Tue Aug  2 17:03:33 CEST 2011 (tk)
2 6
 ----------------------------------
3 7
  * docs: clarify behavior of --scan-*/Scan* options (bb#3134)
... ...
@@ -1611,7 +1611,7 @@ static int maxlinelen(const char *file)
1611 1611
 	return -1;
1612 1612
     }
1613 1613
 
1614
-    return nmax;
1614
+    return nmax + 1;
1615 1615
 }
1616 1616
 
1617 1617
 static int compare(const char *oldpath, const char *newpath, FILE *diff)