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.
This commit is contained in:
John-Mark Gurney 2015-07-15 06:14:04 +00:00
parent ce808c7ad8
commit 8239de9b1b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285595

View file

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