Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37407784
en ru br
Репозитории ALT
S:1.11.23-alt9
5.1: 1.11.23-alt3.M50P.1
4.1: 1.11.22-alt3
4.0: 1.11.22-alt2
+updates:1.11.22-alt2
3.0: 1.11.20-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: cvs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: cvs-1.11.23-alt-history.patch
Скачать


--- 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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin