URL:
<http://savannah.gnu.org/bugs/?42190>
Summary: /usr/bin/grops -c a core dumps
Project: GNU troff
Submitted by: richburridge
Submitted on: Thu 24 Apr 2014 09:16:27 PM GMT
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
Steps to reproduce:
$ /usr/bin/grops -c a
This will dump core.
Fix is:
--- groff-1.22.2/src/devices/grops/ps.cpp.orig 2014-04-24 06:01:32.421674773
-0700
+++ groff-1.22.2/src/devices/grops/ps.cpp 2014-04-24 09:27:56.445423217
-0700
@@ -1803,7 +1803,7 @@
break;
case 'c':
if (sscanf(optarg, "%d", &ncopies) != 1 || ncopies <= 0) {
- error("bad number of copies `%s'", optarg);
+ error("bad number of copies `%1'", optarg);
ncopies = 1;
}
break;
(this is a patch against groff 1.22).
Thanks.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42190>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff