diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-05-20 06:16:53 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-05-20 06:16:53 +0000 |
| commit | 81d50432afe39f2c395f033fa89126a242c63ac0 (patch) | |
| tree | 04394d519028939a31a1be6c96d5986b14392373 | |
| parent | 1a93d71ebcad4a99b08a55a000d4b5bf29c1aac2 (diff) | |
Notes
| -rw-r--r-- | usr.bin/banner/Makefile | 3 | ||||
| -rw-r--r-- | usr.bin/banner/banner.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/banner/Makefile b/usr.bin/banner/Makefile index 21e4686b3cad..a6b264dca0c6 100644 --- a/usr.bin/banner/Makefile +++ b/usr.bin/banner/Makefile @@ -2,7 +2,8 @@ # $FreeBSD$ PROG= banner -CFLAGS+=-Wall MAN= banner.6 +WARNS= 2 + .include <bsd.prog.mk> diff --git a/usr.bin/banner/banner.c b/usr.bin/banner/banner.c index 1cb12eab0704..095f1312c371 100644 --- a/usr.bin/banner/banner.c +++ b/usr.bin/banner/banner.c @@ -1072,7 +1072,7 @@ main(int argc, char *argv[]) } nchars = strlen(message); } else { - if ((message = malloc(MAXMSG)) == NULL) + if ((message = malloc((size_t)MAXMSG)) == NULL) err(1, "malloc"); fprintf(stderr,"Message: "); (void)fgets(message, MAXMSG, stdin); |
