diff options
author | kris <kris@FreeBSD.org> | 2001-08-11 00:49:11 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-08-11 00:49:11 +0000 |
commit | 6c97019ad92ecde4a68cd5d03c7b625e9a8bf49c (patch) | |
tree | 5c1c4eaeab54e7992dee66036562ef1365cd90bc /usr.bin/fmt/fmt.c | |
parent | f1340e224fac9e28419af080702431c2270c59af (diff) | |
download | FreeBSD-src-6c97019ad92ecde4a68cd5d03c7b625e9a8bf49c.zip FreeBSD-src-6c97019ad92ecde4a68cd5d03c7b625e9a8bf49c.tar.gz |
Don't call errx() with a variable format string
MFC after: 1 week
Diffstat (limited to 'usr.bin/fmt/fmt.c')
-rw-r--r-- | usr.bin/fmt/fmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index 06f7356..c601c4d 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -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; } |