]> sourceware.org Git - newlib-cygwin.git/commitdiff
* ctype.cc (__set_ctype): Copy exact part of the current active
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 21 Apr 2009 20:10:55 +0000 (20:10 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 21 Apr 2009 20:10:55 +0000 (20:10 +0000)
character class array.

winsup/cygwin/ChangeLog
winsup/cygwin/ctype.cc

index 47b3efd7b9b5a1483aeb7086b55cc172f32625af..c069b28c31529d6385f7680f1ac4d8041a02f82c 100644 (file)
@@ -1,3 +1,8 @@
+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
index e0d6e7162f7df60b1a31ba0bf88b108b73ea1f1b..224db4c1926a61080699f66239b70a28941eb743 100644 (file)
@@ -34,7 +34,7 @@ __set_ctype (const char *charset)
       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;
@@ -45,7 +45,7 @@ __set_ctype (const char *charset)
       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;
This page took 0.037072 seconds and 5 git commands to generate.