aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-08-18 21:34:12 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-08-18 21:34:12 +0000
commit606b60ca2ff04d4365ac47897b23f99c55a77a2c (patch)
tree0f06cc0792fbd60da51b006eaa1fd90bb40be3d9 /release/sysinstall
parent3f1d66701ad258330d6fba41be01664c8c1aa0ac (diff)
Notes
Diffstat (limited to 'release/sysinstall')
-rw-r--r--release/sysinstall/attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c
index 3b439a9c8e3e..e864e1358c8b 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;