diff options
Diffstat (limited to 'usr.bin/du')
-rw-r--r-- | usr.bin/du/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/du/du.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/du/Makefile b/usr.bin/du/Makefile index 863e392..d279a97 100644 --- a/usr.bin/du/Makefile +++ b/usr.bin/du/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PROG= du -CFLAGS+= -Wall +WARNS?= 2 DPADD= ${LIBM} LDADD= -lm diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 8595341..9d44963 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -117,6 +117,7 @@ main(argc, argv) int depth; int Hflag, Lflag, Pflag, aflag, sflag, dflag, cflag, hflag, ch, notused, rval; char **save; + static char dot[] = "."; Hflag = Lflag = Pflag = aflag = sflag = dflag = cflag = hflag = 0; @@ -225,7 +226,7 @@ main(argc, argv) if (!*argv) { argv = save; - argv[0] = "."; + argv[0] = dot; argv[1] = NULL; } |