mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
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:
parent
afbc77dd07
commit
abb231b633
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user