Explorar el Código

fixed run_command()

master
Aaron Marcher hace 8 años
padre
commit
5a70f920f0
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 74B048E5C2474F9A
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      slstatus.c

+ 2
- 2
slstatus.c Ver fichero

@@ -407,8 +407,8 @@ run_command(const char *cmd)
warn("Failed to get command output for %s", cmd);
return smprintf(UNKNOWN_STR);
}
fgets(buf, sizeof(buf), fp);
buf[sizeof(buf)-1] = '\0';
fgets(buf, sizeof(buf)-1, fp);
buf[strlen(buf)-1] = '\0';
pclose(fp);

return smprintf("%s", buf);


Cargando…
Cancelar
Guardar