summaryrefslogtreecommitdiff
path: root/usr.bin/sort/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sort/files.c')
-rw-r--r--usr.bin/sort/files.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/sort/files.c b/usr.bin/sort/files.c
index 35208ff7aee..90317da4872 100644
--- a/usr.bin/sort/files.c
+++ b/usr.bin/sort/files.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: files.c,v 1.5 1997/06/30 05:36:16 millert Exp $ */
+/* $OpenBSD: files.c,v 1.6 2000/06/30 16:00:23 millert Exp $ */
/*-
* Copyright (c) 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)files.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: files.c,v 1.5 1997/06/30 05:36:16 millert Exp $";
+static char rcsid[] = "$OpenBSD: files.c,v 1.6 2000/06/30 16:00:23 millert Exp $";
#endif
#endif /* not lint */
@@ -157,7 +157,7 @@ makeline(flno, filelist, nfiles, buffer, bufend, dummy2)
if (fileno >= nfiles)
return (EOF);
if (!(fp = fopen(filelist.names[fileno], "r")))
- err(2, filelist.names[fileno]);
+ err(2, "%s", filelist.names[fileno]);
fileno++;
}
while ((pos < end) && ((c = getc(fp)) != EOF)) {
@@ -225,7 +225,7 @@ makekey(flno, filelist, nfiles, buffer, bufend, ftbl)
return (EOF);
dbdesc = fopen(filelist.names[fileno], "r");
if (!dbdesc)
- err(2, filelist.names[fileno]);
+ err(2, "%s", filelist.names[fileno]);
fileno++;
get = seq;
}