🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10765

Fix for faulty regexp backslash handling in nn-6.7.3

#10765
From: J. Porter Clark
Date: Tue, 02 Jan 2007 21:14
27 lines
1738 bytes
I mentioned this bug a long time ago (5 March 2006) and suddenly
resolved to fix it.  I think that this patch, which reverts one
line back to the working code in 6.6.4, will do the trick.  I am
not aware of anything that this patch breaks.

*** regexp.c.orig	Tue Jan  2 15:03:46 2007
--- regexp.c	Tue Jan  2 15:04:18 2007
***************
*** 545,551 ****
  		    break;
  		default:
  		    ret = regnode(EXACTLY);
! 		    regc(*regparse);
  		    regc('\0');
  		    *flagp |= HASWIDTH | SIMPLE;
  		    break;
--- 545,551 ----
  		    break;
  		default:
  		    ret = regnode(EXACTLY);
! 		    regc(*(regparse - 1));
  		    regc('\0');
  		    *flagp |= HASWIDTH | SIMPLE;
  		    break;

-- 
J. Porter Clark <jpc@porterclark.com>
Technical Details
Message-ID: <PWzmh.80$g_7.11@newsfe02.lga>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!hwmnpeer01.lga!news.highwinds-media.com!hw-filter.lga!newsfe02.lga.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <PWzmh.80$g_7.11@newsfe02.lga>
Subject: Fix for faulty regexp backslash handling in nn-6.7.3
Date: Tue, 02 Jan 2007 21:14:23 GMT
From: jpc@porterclark.com (J. Porter Clark)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!hwmnpeer01.lga!news.highwinds-media.com!hw-filter.lga!newsfe02.lga.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.nn
Organization: http://www.angelfire.com/ego/porterclark/
Lines: 27
X-Trace: nphhjmdkmllhpdkekannfilpcpbbolnmlbcebbbabdopjfkhmfhcdekebndpcaakpaimniabbmndchgcibgpjogkmlgdpnehgdpklbagjikbenhckdeccepflnhenfegeojlggmcfeegpadp
NNTP-Posting-Date: Tue, 02 Jan 2007 14:14:23 MST