chiark
/
gitweb
/
~bjharris
/
bedstead-debian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db0ea6
)
Make it safe to call fullname_to_fontname() twice
author
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 2 Nov 2024 15:18:55 +0000
(15:18 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Sun, 10 Nov 2024 09:23:15 +0000
(09:23 +0000)
bedstead.c
patch
|
blob
|
history
diff --git
a/bedstead.c
b/bedstead.c
index fa31f00782bf4cf233ce22defd1fb73766ebf6e9..2523e576061daaf084413bd0c1309bd7cec8e3c4 100644
(file)
--- a/
bedstead.c
+++ b/
bedstead.c
@@
-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;