Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
rinri
/
slstatus
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
Merge pull request
#39
from stoeckmann/fgets
On success, fgets always terminates the result.
master
Aaron Marcher
há 7 anos
committed by
GitHub
ascendente
1289bdb742
35295f1902
cometimento
95ceafcae7
1 ficheiros alterados
com
1 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+1
-1
slstatus.c
+ 1
- 1
slstatus.c
Ver ficheiro
@@ -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';
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar