diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-05-25 14:12:02 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-05-25 14:12:02 +0100 |
commit | 8dc7ec2cb48d74a6fd808f6989ec08771f4bb98f (patch) | |
tree | d2cffc20addd1c605da3a3f3f12aced4bd9bf161 /amiga/font.c | |
parent | 4a618b7040022b9f1b18d030139f09ddabc4e3e3 (diff) | |
download | netsurf-8dc7ec2cb48d74a6fd808f6989ec08771f4bb98f.tar.gz netsurf-8dc7ec2cb48d74a6fd808f6989ec08771f4bb98f.tar.bz2 |
More split fixery
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x | amiga/font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/font.c b/amiga/font.c index 68ec8da1a..69afdbaf8 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -308,7 +308,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, *char_offset = 0; *actual_x = 0; - while (utf8_pos <= length) { + do { if ((*utf16 < 0xD800) || (0xDBFF < *utf16)) utf16charlen = 1; else @@ -351,7 +351,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, tx += tempx; utf16 = utf16next; utf8_pos = utf8_next(string, length, utf8_pos); - } + } while (utf8_pos < length); free(outf16); |