소스 검색

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


불러오는 중...
취소
저장