svn commit: r225911 - user/gabor/tre-integration/contrib/tre/lib
Gabor Kovesdan
gabor at FreeBSD.org
Sat Oct 1 22:19:22 UTC 2011
Author: gabor
Date: Sat Oct 1 22:19:22 2011
New Revision: 225911
URL: http://svn.freebsd.org/changeset/base/225911
Log:
- Fix pattern handling
- Add a missing include
Modified:
user/gabor/tre-integration/contrib/tre/lib/tre-compile.c
Modified: user/gabor/tre-integration/contrib/tre/lib/tre-compile.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/tre-compile.c Sat Oct 1 22:17:25 2011 (r225910)
+++ user/gabor/tre-integration/contrib/tre/lib/tre-compile.c Sat Oct 1 22:19:22 2011 (r225911)
@@ -18,6 +18,7 @@
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <assert.h>
+#include <errno.h>
#include <regex.h>
#include <string.h>
@@ -1914,7 +1915,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