Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
rinri
/
slstatus
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Merge pull request
#39
from stoeckmann/fgets
On success, fgets always terminates the result.
master
Aaron Marcher
7 anni fa
committed by
GitHub
parent
1289bdb742
35295f1902
commit
95ceafcae7
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-1
slstatus.c
+ 1
- 1
slstatus.c
Vedi File
@@ -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';
Scrivi
Anteprima
Caricamento…
Annulla
Salva