Date: Sat, 1 Oct 2011 22:19:22 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r225911 - user/gabor/tre-integration/contrib/tre/lib Message-ID: <201110012219.p91MJMVm036062@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */ {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110012219.p91MJMVm036062>