Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zaloguj się
rinri
/
slstatus
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Oczekujące zmiany
0
Wydania
0
Wiki
Aktywność
Przeglądaj źródła
Merge pull request
#39
from stoeckmann/fgets
On success, fgets always terminates the result.
master
Aaron Marcher
7 lat temu
committed by
GitHub
rodzic
1289bdb742
35295f1902
commit
95ceafcae7
1 zmienionych plików
z
1 dodań
i
1 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+1
-1
slstatus.c
+ 1
- 1
slstatus.c
Wyświetl plik
@@ -447,7 +447,7 @@ run_command(const char *cmd)
warn("Failed to get command output for %s", cmd);
return smprintf("%s", UNKNOWN_STR);
}
fgets(buf, sizeof(buf)
- 1
, fp);
fgets(buf, sizeof(buf), fp);
pclose(fp);
buf[sizeof(buf) - 1] = '\0';
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz