Fix ucs4->utf8 conversion. It probably helps to return the number of bytes in the buffer, rather than the free space.

svn path=/trunk/netsurf/; revision=6558
This commit is contained in:
John Mark Bell 2009-02-18 12:53:44 +00:00
parent afbc77dd07
commit abb231b633

View File

@ -172,7 +172,7 @@ size_t utf8_from_ucs4(uint32_t c, char *s)
return 3;
}
return len;
return 6 - len;
#else
uint8_t *buf;
uint8_t l = 0;