From 8239de9b1b2009bd4f744d1f9215b282d6dabdba Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 15 Jul 2015 06:14:04 +0000 Subject: [PATCH] fix error message... errx since errno may not be set (if we didn't parse the full field), and err and errx add their own newline at the end... Sponsored by: Netflix, Inc. --- usr.bin/ministat/ministat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/ministat/ministat.c b/usr.bin/ministat/ministat.c index 4c0ddd056a64..59beac7127f9 100644 --- a/usr.bin/ministat/ministat.c +++ b/usr.bin/ministat/ministat.c @@ -487,7 +487,7 @@ ReadSet(const char *n, int column, const char *delim) d = strtod(t, &p); if (p != NULL && *p != '\0') - err(2, "Invalid data on line %d in %s\n", line, n); + errx(2, "Invalid data on line %d in %s", line, n); if (*buf != '\0') AddPoint(s, d); }