Blame a2ps-bad-free.patch
|
Tim Waugh |
27cd62 |
diff -up a2ps-4.14/lib/encoding.c.bad-free a2ps-4.14/lib/encoding.c
|
|
Tim Waugh |
27cd62 |
--- a2ps-4.14/lib/encoding.c.bad-free 2013-04-30 11:49:50.511962062 +0100
|
|
Tim Waugh |
27cd62 |
+++ a2ps-4.14/lib/encoding.c 2013-04-30 11:52:18.682573468 +0100
|
|
Tim Waugh |
27cd62 |
@@ -541,7 +541,9 @@ encoding_resolve_font_substitute (struct
|
|
Tim Waugh |
27cd62 |
{
|
|
Tim Waugh |
27cd62 |
/* Find if there is a substitute for that font */
|
|
Tim Waugh |
27cd62 |
res = pair_get (encoding->substitutes, font_name);
|
|
Tim Waugh |
27cd62 |
- if (!res)
|
|
Tim Waugh |
27cd62 |
+ if (res)
|
|
Tim Waugh |
27cd62 |
+ res = xstrdup (res);
|
|
Tim Waugh |
27cd62 |
+ else
|
|
Tim Waugh |
27cd62 |
/* No. Check if this font is supported */
|
|
Tim Waugh |
27cd62 |
if (font_exists (job, font_name))
|
|
Tim Waugh |
27cd62 |
/* Avoid returning sth alloca'd */
|