Commit 37ed118b authored by gi1242's avatar gi1242

Tetsuya KOBAYASHI: Fix mfont issues on 64 bit machines.

parent fdcbe7ab
......@@ -3200,11 +3200,10 @@ rxvt_scr_draw_string (rxvt_t* r, int page,
{
/* We should convert the string to UTF-8 */
char* buf = pbuf; /* always init it */
int buflen = sizeof(pbuf)-1;/* always init it */
int newlen = loopitem; /* always init it */
size_t buflen = sizeof(pbuf)-1;/* always init it */
size_t newlen = loopitem; /* always init it */
char* oldstr = newstr;
iconv (r->TermWin.xfticonv, (char**)(&newstr),
(size_t*) &newlen, &buf, (size_t*) &buflen);
iconv (r->TermWin.xfticonv, &newstr, &newlen, &buf, &buflen);
*buf = (char) 0; /* set end of string */
pstr = pbuf;
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment