mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-08-08 09:20:37 -04:00
Make it safe to call fullname_to_fontname() twice
This commit is contained in:
parent
4db0ea6bc1
commit
cba03ce5fd
@ -2652,7 +2652,8 @@ static char *
|
||||
fullname_to_fontname(char const *fullname)
|
||||
{
|
||||
#define FONTNAME_MAX 29 /* Adobe-recommended limit */
|
||||
static char fontname[FONTNAME_MAX + 1], *op = fontname;
|
||||
static char fontname[FONTNAME_MAX + 1];
|
||||
char *op = fontname;
|
||||
char const *p = fullname;
|
||||
bool gotfamily = false;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user