Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37900901
en ru br
ALT Linux repos
S:1.11.23-alt9
5.0: 1.11.23-alt1
4.1: 1.11.22-alt3
4.0: 1.11.22-alt2
+updates:1.11.22-alt2
3.0: 1.11.20-alt1

Group :: Development/Other
RPM: cvs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: cvs-1.11.23-alt-history.patch
Download


--- cvs/src/history.c
+++ cvs/src/history.c
@@ -970,8 +970,8 @@ save_file (dir, name, module)
 	file_list = xrealloc (file_list, xtimes (file_max, sizeof (*fl)));
     }
     fl = &file_list[file_count++];
-    fl->l_file = cp = xmalloc (dir ? strlen (dir) : 0
-			       + name ? strlen (name) : 0
+    fl->l_file = cp = xmalloc ((dir ? strlen (dir) : 0)
+			       + (name ? strlen (name) : 0)
 			       + 2);
     fl->l_module = module;
 
@@ -1040,7 +1040,8 @@ expand_modules ()
 	while (isspace(*line)) line++; \
 	hr->here = line; \
 	while ((c = *line++) && c != '|') ; \
-	if (!c) return; line[-1] = '\0'; \
+	if (!c) return; \
+	line[-1] = '\0'; \
 	} while (0)
 
 static void
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin