瀏覽代碼

braces for one line statements in smprintf()

master
Aaron Marcher 8 年之前
committed by Aaron Marcher (drkhsh)
父節點
當前提交
c5ace949e4
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      slstatus.c

+ 2
- 1
slstatus.c 查看文件

@@ -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);


Loading…
取消
儲存