diff options
Diffstat (limited to 'usr.bin/fmt')
-rw-r--r-- | usr.bin/fmt/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index ac3c6c09349..f6c0156fdfa 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt.c,v 1.19 2001/11/29 00:33:06 millert Exp $ */ +/* $OpenBSD: fmt.c,v 1.20 2003/12/01 15:34:26 grange Exp $ */ /* Sensible version of fmt * @@ -170,7 +170,7 @@ #ifndef lint static const char rcsid[] = - "$OpenBSD: fmt.c,v 1.19 2001/11/29 00:33:06 millert Exp $"; + "$OpenBSD: fmt.c,v 1.20 2003/12/01 15:34:26 grange Exp $"; static const char copyright[] = "Copyright (c) 1997 Gareth McCaughan. All rights reserved.\n"; #endif /* not lint */ @@ -200,7 +200,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; } |