Browse Source

fix missing newline in herror output

Rich Felker 4 năm trước cách đây
mục cha
commit
262003ad9d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/network/herror.c

+ 1 - 1
src/network/herror.c

@@ -4,5 +4,5 @@
 
 void herror(const char *msg)
 {
-	fprintf(stderr, "%s%s%s", msg?msg:"", msg?": ":"", hstrerror(h_errno));
+	fprintf(stderr, "%s%s%s\n", msg?msg:"", msg?": ":"", hstrerror(h_errno));
 }