+2009-04-21 Corinna Vinschen <corinna@vinschen.de>
+
+ * ctype.cc (__set_ctype): Copy exact part of the current active
+ character class array.
+
2009-04-20 Corinna Vinschen <corinna@vinschen.de>
* flock.cc (lf_setlock): Handle border case which results in WFMO loop
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
{
memcpy (_ctype_b, __ctype_iso[idx], 128);
- memcpy (_ctype_b + 256, __ctype_iso[idx], 128);
+ memcpy (_ctype_b + 256, __ctype_iso[idx] + 256, 128);
}
__ctype_ptr__ = (char *) (__ctype_iso[idx] + 127);
return;
if (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE)
{
memcpy (_ctype_b, __ctype_cp[idx], 128);
- memcpy (_ctype_b + 256, __ctype_cp[idx], 128);
+ memcpy (_ctype_b + 256, __ctype_cp[idx] + 256, 128);
}
__ctype_ptr__ = (char *) (__ctype_cp[idx] + 127);
return;