🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bob Glickstein Wed, 27 Jan 1993 03:26
Patch 2.0 12g8 bug
#1358
Author: Bob Glickstein
Date: Wed, 27 Jan 1993 03:26
26 lines
1147 bytes
In get_some_switches() in patch.c, the result of getopt_long() is
assigned to a char, then compared (with `!=') to -1.  This always
succeeds on machines where chars are unsigned.

Apply this patch to patch:

--- patch.c.orig	Tue Jan 26 17:02:55 1993
+++ patch.c	Tue Jan 26 17:03:41 1993
@@ -474,7 +474,7 @@
 void
 get_some_switches()
 {
-    Reg1 char optc;
+    Reg1 int optc;
 
     rejname[0] = '\0';
     optind_last = optind;

Cheers.

-- 
Bob Glickstein
Z-Code Software Corp.
4340 Redwood Highway  Suite B-50
San Rafael, CA  94903
(415) 499-8649
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads