svn commit: r225910 - user/gabor/grep/trunk/regex
Gabor Kovesdan
gabor at FreeBSD.org
Sat Oct 1 22:17:26 UTC 2011
Author: gabor
Date: Sat Oct 1 22:17:25 2011
New Revision: 225910
URL: http://svn.freebsd.org/changeset/base/225910
Log:
- Fix regression in pattern handling
Reported by: aakuusta at gmail.com
Modified:
user/gabor/grep/trunk/regex/tre-compile.c
Modified: user/gabor/grep/trunk/regex/tre-compile.c
==============================================================================
--- user/gabor/grep/trunk/regex/tre-compile.c Sat Oct 1 22:16:16 2011 (r225909)
+++ user/gabor/grep/trunk/regex/tre-compile.c Sat Oct 1 22:17:25 2011 (r225910)
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <assert.h>
+#include <errno.h>
#include <regex.h>
#include <string.h>
#include <wchar.h>
@@ -80,7 +81,7 @@ tre_convert_pattern(const char *regex, s
#endif /* TRE_MULTIBYTE */
wregex[wlen] = L'\0';
*w = wregex;
- *wn = n;
+ *wn = wlen;
return REG_OK;
#else /* !TRE_WCHAR */
{
More information about the svn-src-user
mailing list