Don't call errx() with a variable format string

MFC after:	1 week
This commit is contained in:
kris 2001-08-11 00:49:11 +00:00
parent f1340e224f
commit 6c97019ad9

View File

@ -198,7 +198,7 @@ get_positive(const char *s, const char *err_mess, int fussyP) {
char *t;
long result = strtol(s,&t,0);
if (*t) { if (fussyP) goto Lose; else return 0; }
if (result<=0) { Lose: errx(EX_USAGE, err_mess); }
if (result<=0) { Lose: errx(EX_USAGE, "%s", err_mess); }
return (size_t) result;
}