diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-25 18:56:15 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-25 18:56:15 +0000 |
commit | 6442135b45c84ffad00afa794e253fed30240eeb (patch) | |
tree | 5962dda832228d55c604ab957f18b74fcdf0d2a6 /usr.bin/tn3270 | |
parent | e1ba7bded698f4a3fc2a1a6cb3f6c1270412e0cd (diff) |
add bounds to some more %s in sscanf
ok millert@
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r-- | usr.bin/tn3270/tools/mkhits/dohits.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tn3270/tools/mkhits/dohits.c b/usr.bin/tn3270/tools/mkhits/dohits.c index 55e3b957ca7..5afa59815d6 100644 --- a/usr.bin/tn3270/tools/mkhits/dohits.c +++ b/usr.bin/tn3270/tools/mkhits/dohits.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dohits.c,v 1.6 2003/04/06 22:02:05 tedu Exp $ */ +/* $OpenBSD: dohits.c,v 1.7 2003/04/25 18:56:14 avsm Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dohits.c 4.2 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: dohits.c,v 1.6 2003/04/06 22:02:05 tedu Exp $"; +static char rcsid[] = "$OpenBSD: dohits.c,v 1.7 2003/04/25 18:56:14 avsm Exp $"; #endif /* not lint */ /* @@ -269,7 +269,7 @@ char *aidfile, *fcnfile; plain[0] = shifted[0] = alted[0] = shiftalted[0] = 0; keynumber = -1; scancode = -1; - (void) sscanf(line, "%d %x %s %s %s %s", &keynumber, + (void) sscanf(line, "%d %x %99s %99s %99s %99s", &keynumber, &scancode, plain, shifted, alted, shiftalted); if ((keynumber == -1) || (scancode == -1) || ((plain[0] == 0) |