]> mj.ucw.cz Git - libucw.git/commitdiff
Fixed a recent bug in libcharset.
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Wed, 16 Jan 2008 14:50:13 +0000 (15:50 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Wed, 16 Jan 2008 14:50:13 +0000 (15:50 +0100)
charset/charconv-gen.h

index 6740c1b4f279e310b8b5057e73942269fce74f3c..5a83232f7aaad432281d8969e34f7e807717b349 100644 (file)
@@ -154,7 +154,7 @@ got_code:
       if (code < 0x80)
         {
          if (d >= de)
-           goto dend;
+           goto dend_utf;
          *d++ = code;
        }
       else if (code < 0x800)
@@ -247,10 +247,6 @@ write_slow:
 #endif
 
 #ifdef CONV_WRITE_UTF8
- dend:
-  c->source = s;
-  c->dest = d;
-  return CONV_DEST_END;
  dend_utf:
   c->state = UTF8_WRITE_START;
   c->code = code;