const unsigned char *cp;
int state = 0;
int c;
- char *buf = 0, *bp;
+ unsigned char *buf = 0, *bp;
/* check if it's already utf8, code taken from screen ;-) */
cp = (const unsigned char *)str;
/* not utf8, assume latin1 */
buf = sat_malloc(2 * strlen(str) + 1);
cp = (const unsigned char *)str;
- str = buf;
+ str = (char*) buf;
bp = buf;
while ((c = *cp++) != 0)
{
}
else
{
- fprintf( stderr, "<dir .../> tag without 'name' attribute, atts = %p, *atts = %p\n", atts, *atts);
+ fprintf( stderr, "<dir .../> tag without 'name' attribute, atts = %p, *atts = %p\n",
+ (void*) atts, *atts);
break;
}
if ( (str = find_attr("size", atts)) )