このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
rinri
/
slstatus
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
プルリクエスト
0
リリース
0
Wiki
アクティビティ
ソースを参照
Merge pull request
#39
from stoeckmann/fgets
On success, fgets always terminates the result.
master
Aaron Marcher
7年前
committed by
GitHub
親
1289bdb742
35295f1902
コミット
95ceafcae7
1個のファイルの変更
、
1行の追加
、
1行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+1
-1
slstatus.c
+ 1
- 1
slstatus.c
ファイルの表示
@@ -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';
書き込み
プレビュー
読み込み中…
キャンセル
保存