Thread View: news.software.nn
1 messages
1 total messages
Started by J. Porter Clark
Tue, 02 Jan 2007 21:14
Fix for faulty regexp backslash handling in nn-6.7.3
Author: J. Porter Clark
Date: Tue, 02 Jan 2007 21:14
Date: Tue, 02 Jan 2007 21:14
27 lines
1738 bytes
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>
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