X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fregex_internal.c;h=7e8c1bc25c9e78fca3e4898deda0896100bdba7f;hb=f68069b334f95cfd6d18db4bb059b792beb48158;hp=7697723c4eb792770bea40e34efb951392743f58;hpb=5a460138e9cb595387de6db5a86a63c12d63d181;p=gnulib.git diff --git a/lib/regex_internal.c b/lib/regex_internal.c index 7697723c4..7e8c1bc25 100644 --- a/lib/regex_internal.c +++ b/lib/regex_internal.c @@ -14,8 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ static void re_string_construct_common (const char *str, Idx len, re_string_t *pstr, @@ -499,7 +498,7 @@ re_string_skip_chars (re_string_t *pstr, Idx new_raw_idx, wint_t *last_wc) rawbuf_idx < new_raw_idx;) { wchar_t wc2; - Idx remain_len = pstr->len - rawbuf_idx; + Idx remain_len = pstr->raw_len - rawbuf_idx; prev_st = pstr->cur_state; mbclen = __mbrtowc (&wc2, (const char *) pstr->raw_mbs + rawbuf_idx, remain_len, &pstr->cur_state);