Return error instead of segfaulting in lff_single() due to missing fonts.
3270 Terminal Emulator
Brought to you by:
pmattes
In some cases when fonts are present locally but are not present in the fontpath (in the case I saw that was due to X running on a Windows server and the directory with the font was refused from the font patch) x3270 can crash due to a segfault caused by XLoadQueryFont() returning NULL in lff_single().
The attached patch makes lff_single() return an error message instead in such a case instead of just segfaulting.
I will get this checked in ASAP -- thank you!