summaryrefslogtreecommitdiff
path: root/usr.bin/file/apprentice.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-06 00:32:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-06 00:32:30 +0000
commit462fab4c617e05fb8273d4b5d7b937a95e6573ea (patch)
tree40c5565d3e3194b19594722eaa7cfa120ab7657d /usr.bin/file/apprentice.c
parentef9d64b1fa84974c4f35a8c310958a0696be7f95 (diff)
oflow
Diffstat (limited to 'usr.bin/file/apprentice.c')
-rw-r--r--usr.bin/file/apprentice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/file/apprentice.c b/usr.bin/file/apprentice.c
index 177992aeb63..6c62bc59b64 100644
--- a/usr.bin/file/apprentice.c
+++ b/usr.bin/file/apprentice.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apprentice.c,v 1.8 1999/09/26 20:47:28 ian Exp $ */
+/* $OpenBSD: apprentice.c,v 1.9 1999/12/06 00:32:28 deraadt Exp $ */
/*
* apprentice - make one pass through /etc/magic, learning its secrets.
@@ -36,7 +36,7 @@
#include "file.h"
#ifndef lint
-static char *moduleid = "$OpenBSD: apprentice.c,v 1.8 1999/09/26 20:47:28 ian Exp $";
+static char *moduleid = "$OpenBSD: apprentice.c,v 1.9 1999/12/06 00:32:28 deraadt Exp $";
#endif /* lint */
#define EATAB {while (isascii((unsigned char) *l) && \
@@ -74,7 +74,7 @@ int check; /* non-zero? checking-only run. */
else
exit(1);
}
- fn = strcpy(mfn, fn);
+ fn = strcpy(mfn, fn); /* ok */
while (fn) {
p = strchr(fn, ':');