diff options
author | jkh <jkh@FreeBSD.org> | 1997-08-18 21:34:12 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-08-18 21:34:12 +0000 |
commit | 92a6877dd5d448cb9f1acefaa772e0349850111a (patch) | |
tree | 8fa25dced5a9c4ad0f56e88557ffd061d9aaaf82 /release | |
parent | ac3f0c9820af2153cd8e3815c10d8c2b0c729fc9 (diff) | |
download | FreeBSD-src-92a6877dd5d448cb9f1acefaa772e0349850111a.zip FreeBSD-src-92a6877dd5d448cb9f1acefaa772e0349850111a.tar.gz |
Work around potential state machine bogon with FILL. This needs
to be scrapped, ultimately, and it will be.
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/attr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c index 3b439a9..e864e13 100644 --- a/release/sysinstall/attr.c +++ b/release/sysinstall/attr.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: attr.c,v 1.8.2.8 1997/03/28 23:07:09 jkh Exp $ + * $Id: attr.c,v 1.17 1997/04/02 12:07:21 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -60,7 +60,7 @@ attr_parse(Attribs *attr, FILE *fp) { char hold_n[MAX_NAME+1]; char hold_v[MAX_VALUE+1]; - char buf[BUFSIZ]; + char buf[BUFSIZ * 4]; int bp, n, v, max; enum { LOOK, COMMENT, NAME, VALUE, MVALUE, COMMIT, FILL, STOP } state; int num_attribs; @@ -98,7 +98,7 @@ attr_parse(Attribs *attr, FILE *fp) state = COMMENT; continue; } - else if (isalpha(ch) || ch == '_') { + else if (isalnum(ch) || ch == '_') { if (n >= MAX_NAME) { msgDebug("Attribute name overflow at character %d, ignoring entry..\n", n); n = 0; |