Explorar el Código

subtraction is unneeded

master
Ali H. Fardan hace 8 años
padre
commit
e6158e300d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      slstatus.c

+ 1
- 1
slstatus.c Ver fichero

@@ -260,7 +260,7 @@ hostname(void)

fgets(hostname, sizeof(hostname), fp);
/* FIXME: needs improvement */
memset(&hostname[strlen(hostname)-1], '\0',
memset(&hostname[strlen(hostname)], '\0',
sizeof(hostname) - strlen(hostname));
fclose(fp);



Cargando…
Cancelar
Guardar