OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d37cb
)
fix warning when sizeof uchar_t is 8 bits
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 20 Jan 2006 23:07:42 +0000
(23:07 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 20 Jan 2006 23:07:42 +0000
(23:07 -0000)
libc/misc/regex/regex_old.c
patch
|
blob
|
history
diff --git
a/libc/misc/regex/regex_old.c
b/libc/misc/regex/regex_old.c
index
85a1b8e
..
bb8aa76
100644
(file)
--- a/
libc/misc/regex/regex_old.c
+++ b/
libc/misc/regex/regex_old.c
@@
-3316,11
+3316,15
@@
PREFIX(regex_compile) (ARG_PREFIX(pattern), ARG_PREFIX(size), syntax, bufp)
PATFETCH (c);
if ((c == ':' && *p == ']') || p == pend)
break;
+#if CHAR_CLASS_MAX_LENGTH != 256
if (c1 < CHAR_CLASS_MAX_LENGTH)
str[c1++] = c;
else
/* This is in any case an invalid class name. */
str[0] = '\0';
+#else
+ str[c1++] = c;
+#endif
}
str[c1] = '\0';