+1999-09-26 Ulrich Drepper <drepper@cygnus.com>
+
+ * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix
+ error message printing. Correctly test whether all characters of
+ current token are used.
+ (ctype_read): NUL terminate last_str.
+
1999-09-26 Thorsten Kukuk <kukuk@suse.de>
* nscd/connections.c: Invalidate caches on request.
{
invalid_range:
lr_error (ldfile,
- _("`%s' and `%s' are no valid names for symbolic range"),
- last_str, nowstr);
+ _("`%s' and `%.*s' are no valid names for symbolic range"),
+ last_str, now->val.str.lenmb, nowstr);
return;
}
goto invalid_range;
to = strtoul (nowstr + (cp - last_str), &endp, base);
- if ((to == UINT_MAX && errno == ERANGE) || *endp != '\0' || from >= to)
+ if ((to == UINT_MAX && errno == ERANGE)
+ || (endp - nowstr) != now->val.str.lenmb || from >= to)
goto invalid_range;
/* OK, we have a range FROM - TO. Now we can create the symbolic names. */
&ctype->class_collection_act, wch) |= class_bit;
last_token = now->tok;
+ /* Terminate the string. */
+ now->val.str.startmb[now->val.str.lenmb] = '\0';
last_str = now->val.str.startmb;
last_seq = seq;
last_wch = wch;