You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
584 B
15 lines
584 B
5 years ago
|
diff -up a2ps-4.14/lib/encoding.c.bad-free a2ps-4.14/lib/encoding.c
|
||
|
--- a2ps-4.14/lib/encoding.c.bad-free 2013-04-30 11:49:50.511962062 +0100
|
||
|
+++ a2ps-4.14/lib/encoding.c 2013-04-30 11:52:18.682573468 +0100
|
||
|
@@ -541,7 +541,9 @@ encoding_resolve_font_substitute (struct
|
||
|
{
|
||
|
/* Find if there is a substitute for that font */
|
||
|
res = pair_get (encoding->substitutes, font_name);
|
||
|
- if (!res)
|
||
|
+ if (res)
|
||
|
+ res = xstrdup (res);
|
||
|
+ else
|
||
|
/* No. Check if this font is supported */
|
||
|
if (font_exists (job, font_name))
|
||
|
/* Avoid returning sth alloca'd */
|