=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/awk/main.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- src/usr.bin/awk/main.c 2020/08/11 16:57:05 1.45 +++ src/usr.bin/awk/main.c 2020/12/09 20:00:11 1.46 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.45 2020/08/11 16:57:05 millert Exp $ */ +/* $OpenBSD: main.c,v 1.46 2020/12/09 20:00:11 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -23,7 +23,7 @@ THIS SOFTWARE. ****************************************************************/ -const char *version = "version 20200807"; +const char *version = "version 20201208"; #define DEBUG #include @@ -181,7 +181,7 @@ fn = getarg(&argc, &argv, "no program filename"); if (npfile >= maxpfile) { maxpfile += 20; - pfile = realloc(pfile, maxpfile * sizeof(*pfile)); + pfile = (char **) realloc(pfile, maxpfile * sizeof(*pfile)); if (pfile == NULL) FATAL("error allocating space for -f options"); }