Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
rinri
/
slstatus
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Demandes d'ajout
0
Versions
0
Wiki
Activité
Parcourir la source
Merge pull request
#39
from stoeckmann/fgets
On success, fgets always terminates the result.
master
Aaron Marcher
il y a 7 ans
committed by
GitHub
Parent
1289bdb742
35295f1902
révision
95ceafcae7
1 fichiers modifiés
avec
1 ajouts
et
1 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+1
-1
slstatus.c
+ 1
- 1
slstatus.c
Voir le fichier
@@ -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';
Écrire
Aperçu
Chargement…
Annuler
Enregistrer