diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-12-10 17:39:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-12-10 17:39:33 +0000 |
commit | f0c7da5f19342c1a806ca03d63b155c8039703c6 (patch) | |
tree | 29096cf32a1d501b0a9afdacf7aa70cc6357beef | |
parent | 8bf9156c7e8835d332ec12e61e606ccc862bd13f (diff) |
careless fscanf, found by parfait, ok jsg
-rw-r--r-- | usr.bin/tn3270/api/api_bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tn3270/api/api_bsd.c b/usr.bin/tn3270/api/api_bsd.c index 87addf10cc0..7f865c4dbff 100644 --- a/usr.bin/tn3270/api/api_bsd.c +++ b/usr.bin/tn3270/api/api_bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: api_bsd.c,v 1.6 2009/10/27 23:59:45 deraadt Exp $ */ +/* $OpenBSD: api_bsd.c,v 1.7 2009/12/10 17:39:32 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -121,7 +121,7 @@ char *string; /* if non-zero, where to connect to */ perror("fopen"); return -1; } - if (fscanf(keyfile, "%s\n", inkey) != 1) { + if (fscanf(keyfile, "100%s\n", inkey) != 1) { perror("fscanf"); return -1; } |