diff options
author | jmg <jmg@FreeBSD.org> | 2015-07-15 06:14:04 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2015-07-15 06:14:04 +0000 |
commit | 9bde258984f54fc570ad8807cbc7b0fb154c34ec (patch) | |
tree | 588cefde985a081a079094ad9d159cd7a81093af /usr.bin | |
parent | 44bd0010827a4824a52b77956e45d2c470574bf5 (diff) | |
download | FreeBSD-src-9bde258984f54fc570ad8807cbc7b0fb154c34ec.zip FreeBSD-src-9bde258984f54fc570ad8807cbc7b0fb154c34ec.tar.gz |
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.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ministat/ministat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ministat/ministat.c b/usr.bin/ministat/ministat.c index 4c0ddd0..59beac7 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); } |