summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf/cvt/st_parse.c
diff options
context:
space:
mode:
authorsn199410 <none@none>2008-07-30 16:10:30 -0700
committersn199410 <none@none>2008-07-30 16:10:30 -0700
commit970495fcbe163a92c91929e60f2f45102d42c9cb (patch)
treeb7a4de2f620a8ac25bb2f8947d94f1f3842b3365 /usr/src/tools/ctf/cvt/st_parse.c
parent2283022c7c1b8c8d3595e7fcb96a4e4bacc6141a (diff)
downloadillumos-gate-970495fcbe163a92c91929e60f2f45102d42c9cb.tar.gz
6575435 ctf tools cannot handle C99 VLAs ("variable length arrays")
Contributed by Rich Lowe
Diffstat (limited to 'usr/src/tools/ctf/cvt/st_parse.c')
-rw-r--r--usr/src/tools/ctf/cvt/st_parse.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/tools/ctf/cvt/st_parse.c b/usr/src/tools/ctf/cvt/st_parse.c
index d4d4921321..b68e08fcbb 100644
--- a/usr/src/tools/ctf/cvt/st_parse.c
+++ b/usr/src/tools/ctf/cvt/st_parse.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -482,7 +482,8 @@ whitesp(char *cp)
{
char c;
- for (c = *cp++; isspace(c); c = *cp++);
+ for (c = *cp++; isspace(c); c = *cp++)
+ ;
--cp;
return (cp);
}
@@ -497,8 +498,8 @@ name(char *cp, char **w)
c = *cp++;
if (c == ':')
*w = NULL;
- else if (isalpha(c) || strchr("_.$", c)) {
- for (c = *cp++; isalnum(c) || strchr(" _.$", c); c = *cp++)
+ else if (isalpha(c) || strchr("_.$#", c)) {
+ for (c = *cp++; isalnum(c) || strchr(" _.$#", c); c = *cp++)
;
if (c != ':')
reset();