summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/uudecode/uudecode.c6
-rw-r--r--usr.sbin/config/mkheaders.c4
-rw-r--r--usr.sbin/ctm/ctm_rmail/ctm_rmail.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c
index 5b6d750dc4f..8cab455214e 100644
--- a/usr.bin/uudecode/uudecode.c
+++ b/usr.bin/uudecode/uudecode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uudecode.c,v 1.3 1997/01/17 07:13:47 millert Exp $ */
+/* $OpenBSD: uudecode.c,v 1.4 1998/05/11 01:19:05 deraadt Exp $ */
/* $NetBSD: uudecode.c,v 1.6 1994/11/17 07:40:43 jtc Exp $ */
/*-
@@ -42,7 +42,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: uudecode.c,v 1.3 1997/01/17 07:13:47 millert Exp $";
+static char rcsid[] = "$OpenBSD: uudecode.c,v 1.4 1998/05/11 01:19:05 deraadt Exp $";
#endif /* not lint */
/*
@@ -115,7 +115,7 @@ decode()
return(1);
}
} while (strncmp(buf, "begin ", 6));
- (void)sscanf(buf, "begin %o %s", &mode, buf);
+ (void)sscanf(buf, "begin %o %1023s", &mode, buf);
/* handle ~user/file format */
if (buf[0] == '~') {
diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c
index 583c2556418..92870708cde 100644
--- a/usr.sbin/config/mkheaders.c
+++ b/usr.sbin/config/mkheaders.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkheaders.c,v 1.8 1997/08/07 10:36:58 deraadt Exp $ */
+/* $OpenBSD: mkheaders.c,v 1.9 1998/05/11 01:19:17 deraadt Exp $ */
/* $NetBSD: mkheaders.c,v 1.12 1997/02/02 21:12:34 thorpej Exp $ */
/*
@@ -100,7 +100,7 @@ emitcnt(head)
while (fgets(buf, sizeof(buf), fp) != NULL) {
if (nv == NULL)
goto writeit;
- if (sscanf(buf, "#define %s %d", nam, &cnt) != 2 ||
+ if (sscanf(buf, "#define %100s %d", nam, &cnt) != 2 ||
strcmp(nam, cntname(nv->nv_name)) != 0 ||
cnt != nv->nv_int)
goto writeit;
diff --git a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c
index d83abc0bf8d..cd96801f009 100644
--- a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c
+++ b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c
@@ -294,7 +294,7 @@ read_piece(char *input_file)
char *s;
int fd = -1;
- if (sscanf(line, "CTM_MAIL BEGIN %s %d %d %c",
+ if (sscanf(line, "CTM_MAIL BEGIN %30s %d %d %c",
delta, &pce, &npieces, junk) != 3)
continue;