diff options
author | msmith <msmith@FreeBSD.org> | 1998-09-04 02:43:26 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-09-04 02:43:26 +0000 |
commit | aa412001a9d7495154bc48d8d580c8efb3cbe7e9 (patch) | |
tree | e966169d03ee6604247111e0fee5f6562aba63c8 /sys/boot/common/interp_parse.c | |
parent | cd489c519a109c93001769e1008a8a567608e6b8 (diff) | |
download | FreeBSD-src-aa412001a9d7495154bc48d8d580c8efb3cbe7e9.zip FreeBSD-src-aa412001a9d7495154bc48d8d580c8efb3cbe7e9.tar.gz |
Generic plug-and-play enumerator infrastructure. Query supplied
enumerators, crossreference returned identifiers with a text-format
database and automatically load corresponding modules and dependancies.
Diffstat (limited to 'sys/boot/common/interp_parse.c')
-rw-r--r-- | sys/boot/common/interp_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/interp_parse.c b/sys/boot/common/interp_parse.c index 57aa681..a985bc5 100644 --- a/sys/boot/common/interp_parse.c +++ b/sys/boot/common/interp_parse.c @@ -11,7 +11,7 @@ * Jordan K. Hubbard * 29 August 1998 * - * $Id: interp_parse.c,v 1.1 1998/09/01 00:41:24 msmith Exp $ + * $Id: interp_parse.c,v 1.2 1998/09/03 06:14:41 jkh Exp $ * * The meat of the simple parser. */ @@ -147,7 +147,7 @@ parse(int *argc, char ***argv, char *str) int len = strlen(val); strncpy(buf + i, val, PARSE_BUFSIZE - (i + 1)); - i += min(len, sizeof(buf) - 1); + i += min(len, PARSE_BUFSIZE - 1); } *q = tmp; /* restore value */ p = q + (token ? 1 : 0); |