groff-commit
[Top][All Lists]
Advanced

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

[groff] 23/24: [troff]: Fix Savannah #66512 (griefed `sy`).


From: G. Branden Robinson
Subject: [groff] 23/24: [troff]: Fix Savannah #66512 (griefed `sy`).
Date: Mon, 2 Dec 2024 22:52:31 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 7ba0196fb4d50dc8bdb24196276be1610a9f2f35
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Dec 2 20:12:52 2024 -0600

    [troff]: Fix Savannah #66512 (griefed `sy`).
    
    * src/roff/troff/input.cpp (system_request, pipe_output): Call
      `tok.next()` at end of non-error path.
    
    Fixes <https://savannah.gnu.org/bugs/?66512>.  Thanks to Deri James for
    the report.
---
 ChangeLog                | 8 ++++++++
 src/roff/troff/input.cpp | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index aef9f1fd8..23fed922c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-12-02  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/input.cpp (system_request, pipe_output): Call
+       `tok.next()` at end of non-error path.
+
+       Fixes <https://savannah.gnu.org/bugs/?66512>.  Thanks to Deri
+       James for the report.
+
 2024-12-02  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [groff]: Regression-test Savannah #66512.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 78737186b..b6a2ffdc7 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8499,6 +8499,7 @@ void pipe_output()
       }
       else
        pipe_command = pc;
+      tok.next();
     }
   }
 }
@@ -8529,6 +8530,7 @@ void system_request()
       delete[] command;
     }
   }
+  tok.next();
 }
 
 void copy_file()



reply via email to

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