fix reported segfault in add_custom_nhcolor_entry()
Program terminated with signal SIGSEGV, Segmentation fault.
77 ../sysdeps/x86_64/multiarch/strlen-evex.S: No such file or directory.
(gdb) bt
at glyphs.c:419
at glyphs.c:173
op=0x5a34af30a574 "DECgraphics") at options.c:3418
This commit is contained in:
@@ -63,12 +63,12 @@ to_custom_symset_entry_callback(int glyph, struct find_struct *findwhat)
|
||||
if (findwhat->unicode_val)
|
||||
uval = unicode_val(findwhat->unicode_val);
|
||||
if (uval && unicodeval_to_utf8str(uval, utf8str, sizeof utf8str)) {
|
||||
add_custom_urep_entry(gs.symset->name, glyph, uval, utf8str,
|
||||
add_custom_urep_entry(gs.symset[gs.symset_which_set].name, glyph, uval, utf8str,
|
||||
gs.symset_which_set);
|
||||
}
|
||||
#endif
|
||||
if (findwhat->color) {
|
||||
add_custom_nhcolor_entry(gs.symset->name, glyph, findwhat->color,
|
||||
add_custom_nhcolor_entry(gs.symset[gs.symset_which_set].name, glyph, findwhat->color,
|
||||
gs.symset_which_set);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user