Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37714625
en ru br
Репозитории ALT
S:6.6.4-alt1
5.1: 6.4-alt0.5
4.1: 6.4-alt0.5
4.0: 6.4-alt0.4
3.0: 6.3.5-alt5
www.altlinux.org/Changes

Другие репозитории
Upstream:6.3.2

Группа :: Мониторинг
Пакет: acct

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

Патч: acct-6.4pre1-alt-warnings.patch
Скачать


--- acct/pacct_rd.c
+++ acct/pacct_rd.c
@@ -277,7 +277,7 @@ double_2_comp2_t (double value)
 		exp++;
 	}
 	/* shift exponent into place */
-	return mant | (exp << MANTSIZE2 - 1);
+	return mant | (exp << (MANTSIZE2 - 1));
 }
 
 
--- acct/sa.c
+++ acct/sa.c
@@ -1579,10 +1579,9 @@ ask_if_junkable (char *s, int len)
   printf ("Junk `%*s'? ", len, s);
   fflush (stdout);
   
-  fgets (line, 1000, stdin);
-  sscanf (line, " %s ", word);
-  
-  if ((word[0] == 'y') || (word[0] == 'Y'))
+  if (fgets (line, 1000, stdin) &&
+      (sscanf (line, " %s ", word) > 0) &&
+      ((word[0] == 'y') || (word[0] == 'Y')))
     return 1;
 
   return 0;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin