diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-01 15:34:27 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-01 15:34:27 +0000 |
commit | 3a166623bfb6e97f6308e8b32e6f9f1d24c0650b (patch) | |
tree | e780d06167f145713f8f35b2c04c912f670cb112 /usr.bin/fmt | |
parent | d87fc95cb42b08c638b6a25a2024a36b39db7efc (diff) |
Format string fixes from art's amd64 tree.
ok rohee@ espie@
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; } |