equal
deleted
inserted
replaced
|
1 Avoid a bad free in the encoding handling logic |
|
2 See: https://launchpad.net/ubuntu/+source/a2ps/+changelog |
|
3 |
|
4 Index: b/lib/encoding.c |
|
5 =================================================================== |
|
6 --- a/lib/encoding.c |
|
7 +++ b/lib/encoding.c |
|
8 @@ -538,7 +538,9 @@ |
|
9 { |
|
10 /* Find if there is a substitute for that font */ |
|
11 res = pair_get (encoding->substitutes, font_name); |
|
12 - if (!res) |
|
13 + if (res) |
|
14 + res = xstrdup (res); |
|
15 + else |
|
16 /* No. Check if this font is supported */ |
|
17 if (font_exists (job, font_name)) |
|
18 /* Avoid returning sth alloca'd */ |