equal
deleted
inserted
replaced
|
1 Prevent /usr/bin/grops from dumping core with given an invalid argument value |
|
2 with something such as |
|
3 |
|
4 $ /usr/bin/grops -c a |
|
5 |
|
6 Fix has been submitted upstream: |
|
7 http://savannah.gnu.org/bugs/?42190 |
|
8 |
|
9 --- groff-1.22.2/src/devices/grops/ps.cpp.orig 2014-04-24 06:01:32.421674773 -0700 |
|
10 +++ groff-1.22.2/src/devices/grops/ps.cpp 2014-04-24 09:27:56.445423217 -0700 |
|
11 @@ -1803,7 +1803,7 @@ |
|
12 break; |
|
13 case 'c': |
|
14 if (sscanf(optarg, "%d", &ncopies) != 1 || ncopies <= 0) { |
|
15 - error("bad number of copies `%s'", optarg); |
|
16 + error("bad number of copies `%1'", optarg); |
|
17 ncopies = 1; |
|
18 } |
|
19 break; |