From 8ccd8b8937ea6ae2bb5b41e3bea6d4c0183d01eb Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 31 Mar 2024 08:06:42 -0400 Subject: [PATCH] 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 --- src/glyphs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glyphs.c b/src/glyphs.c index 14cf57e3f..20b278c9f 100644 --- a/src/glyphs.c +++ b/src/glyphs.c @@ -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); } }