Sfoglia il codice sorgente

braces for one line statements in smprintf()

master
Aaron Marcher 8 anni fa
committed by Aaron Marcher (drkhsh)
parent
commit
c5ace949e4
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      slstatus.c

+ 2
- 1
slstatus.c Vedi File

@@ -88,8 +88,9 @@ smprintf(const char *fmt, ...)
va_end(ap);

ret = malloc(++len);
if (ret == NULL)
if (ret == NULL) {
err(1, "malloc");
}

va_start(ap, fmt);
vsnprintf(ret, len, fmt, ap);


Caricamento…
Annulla
Salva