NetBSD-Bugs archive

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

Re: bin/57106



The following reply was made to PR bin/57106; it has been noted by GNATS.

From: "Bosco G. G." <jbgg%disroot.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/57106
Date: Sun, 11 Dec 2022 00:12:43 +0100

 Index: src/external/bsd/nvi/dist/common/search.c
 ===================================================================
 RCS file: /cvsroot/src/external/bsd/nvi/dist/common/search.c,v
 retrieving revision 1.4
 diff -u -r1.4 search.c
 --- src/external/bsd/nvi/dist/common/search.c	22 Nov 2017 16:17:30 -0000	1.4
 +++ src/external/bsd/nvi/dist/common/search.c	10 Dec 2022 22:46:31 -0000
 @@ -110,9 +110,14 @@
  					++p;
  				break;
  			}
 -			if (plen > 1 && p[0] == '\\' && p[1] == delim) {
 -				++p;
 -				--plen;
 +			if (plen > 1 && p[0] == '\\') {
 +				if(p[1] == delim) {
 +					++p;
 +					--plen;
 +				} else if(p[1] == '\\') {
 +					*t++ = *p++;
 +					--plen;
 +				}
  			}
  		}
  		if (epp != NULL)
 



Home | Main Index | Thread Index | Old Index