From: Pavel Charvat Date: Wed, 16 Jan 2008 14:50:13 +0000 (+0100) Subject: Fixed a recent bug in libcharset. X-Git-Tag: holmes-import~474 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=621ee40d3853fdcfead7af0f1a8631dc2e2d5083;p=libucw.git Fixed a recent bug in libcharset. --- diff --git a/charset/charconv-gen.h b/charset/charconv-gen.h index 6740c1b4..5a83232f 100644 --- a/charset/charconv-gen.h +++ b/charset/charconv-gen.h @@ -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;