bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42190] /usr/bin/grops -c a core dumps


From: Rich Burridge
Subject: [bug #42190] /usr/bin/grops -c a core dumps
Date: Thu, 24 Apr 2014 21:16:28 +0000
User-agent: Mozilla/5.0 (X11; SunOS i86pc; rv:24.0) Gecko/20100101 Firefox/24.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]