Репозитории 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 |
Другие репозитории
Upstream: | 6.3.2 |
Группа :: Мониторинг
Пакет: acct
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: acct-6.4pre1-alt-warnings.patch
Скачать
Скачать
--- acct-6.4-pre1/sa.c
+++ acct-6.4-pre1/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;