summaryrefslogtreecommitdiff
path: root/amiga/font_diskfont.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-29 18:10:45 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-29 18:10:45 +0000
commit64575f2aed9b8f205a6dc1c721e441197c1c2e1f (patch)
tree90b88009d41cb245fe19b39b797d0cd76acd2044 /amiga/font_diskfont.c
parent618e4570ef42b1d0521f7a1295ea7efde68fb17c (diff)
downloadnetsurf-64575f2aed9b8f205a6dc1c721e441197c1c2e1f.tar.gz
netsurf-64575f2aed9b8f205a6dc1c721e441197c1c2e1f.tar.bz2
Avoid some crashing by disabling the update of the hotlist menu
This will be fixed properly when the menu code is re-written to use menuclass, as that supports dynamic updates.
Diffstat (limited to 'amiga/font_diskfont.c')
-rw-r--r--amiga/font_diskfont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/amiga/font_diskfont.c b/amiga/font_diskfont.c
index 20b69856b..6beae57ff 100644
--- a/amiga/font_diskfont.c
+++ b/amiga/font_diskfont.c
@@ -103,6 +103,7 @@ static size_t ami_font_bm_convert_local_to_utf8_offset(const char *utf8string, s
for(UWORD i = 0; i < offset; i++) {
chr = utf8_next(utf8string, length, chr);
+ if(chr > length) return length;
}
return chr;