From 791fc0c3b4d9423c4284222a6e9a6f25b072a38a Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Tue, 12 Aug 2003 13:56:51 +0000 Subject: small code beautification CVS patchset: 5278 CVS date: 2003/08/12 13:56:51 --- src/xine-engine/osd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c index f7e7c3e1d..87b2c7b70 100644 --- a/src/xine-engine/osd.c +++ b/src/xine-engine/osd.c @@ -784,7 +784,7 @@ static int osd_render_text (osd_object_t *osd, int x1, int y1, if( x1 < osd->x1 ) osd->x1 = x1; if( y1 < osd->y1 ) osd->y1 = y1; - inbuf = (char *)text; + inbuf = text; inbytesleft = strlen(text); if (!encoding) { @@ -819,7 +819,9 @@ static int osd_render_text (osd_object_t *osd, int x1, int y1, inbytesleft--; } else { /* get unicode value from iconv */ - count = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); + /* FIXME: we cast away the const from inbuf; Why is iconv() not const here, + * does it change inbuf? */ + count = iconv(cd, (char **)&inbuf, &inbytesleft, &outbuf, &outbytesleft); if (count == (size_t)-1 && errno != E2BIG) { /* unknown character or character wider than 16 bits, try skip one byte */ printf(_("osd: unknown sequence starting with byte 0x%02X" -- cgit v1.2.3