S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
rinri
/
slstatus
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Požadavky na natažení
0
Vydání
0
Wiki
Aktivita
Procházet zdrojové kódy
Merge pull request
#39
from stoeckmann/fgets
On success, fgets always terminates the result.
master
Aaron Marcher
před 7 roky
committed by
GitHub
rodič
1289bdb742
35295f1902
revize
95ceafcae7
1 změnil soubory
, kde provedl
1 přidání
a
1 odebrání
Rozdělené zobrazení
Diff Options
Zobrazit statistiky
Stáhněte soubor opravy
Stáhněte rozdílový soubor
+1
-1
slstatus.c
+ 1
- 1
slstatus.c
Zobrazit soubor
@@ -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';
Zapsat
Náhled
Načítá se…
Zrušit
Uložit