diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-06-27 20:38:50 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-06-27 20:38:50 +0000 |
commit | 03f84707c3c7ac9c4a0f7fad1c37a4110bbec272 (patch) | |
tree | a38e877e6938b6a5b2ec0d3f667a45a45ec6b34a | |
parent | 8ca9fcb59914c26dd22d90927b34818d27afa9e3 (diff) |
Take strlen() of an existing variable. Syntax error introduced in str*
cleanup. Can once again compile ncr53cxxx.c and use it to generate
microcode.
-rw-r--r-- | sys/dev/microcode/siop/ncr53cxxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/microcode/siop/ncr53cxxx.c b/sys/dev/microcode/siop/ncr53cxxx.c index bdbd33044c5..d742fdd6c80 100644 --- a/sys/dev/microcode/siop/ncr53cxxx.c +++ b/sys/dev/microcode/siop/ncr53cxxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr53cxxx.c,v 1.4 2003/04/06 18:54:20 ho Exp $ */ +/* $OpenBSD: ncr53cxxx.c,v 1.5 2003/06/27 20:38:49 krw Exp $ */ /* $NetBSD: ncr53cxxx.c,v 1.10 2002/04/21 22:40:10 bouyer Exp $ */ /* @@ -581,7 +581,7 @@ void parse () *s++ = *p++; } *s = 0; - len = strlen (name) + 1; + len = strlen (string) + 1; tokens[ntokens].name = malloc (len); strlcpy (tokens[ntokens].name, string, len); tokens[ntokens].type = 0; |