Index: php_mbregex.c =================================================================== RCS file: /repository/php-src/ext/mbstring/php_mbregex.c,v retrieving revision 1.41 diff -c -r1.41 php_mbregex.c *** php_mbregex.c 23 Aug 2003 06:18:34 -0000 1.41 --- php_mbregex.c 21 Sep 2003 11:04:32 -0000 *************** *** 653,659 **** } } else { /* nomatch */ /* stick that last bit of string on our output */ ! smart_str_appendl(&out_buf, pos, (size_t)((UChar *)(string + string_len) - pos)); } php_mb_regex_region_free(regs, 0); } --- 653,660 ---- } } else { /* nomatch */ /* stick that last bit of string on our output */ ! if ((UChar *)(string + string_len) > pos) ! smart_str_appendl(&out_buf, pos, (size_t)((UChar *)(string + string_len) - pos)); } php_mb_regex_region_free(regs, 0); } *************** *** 1124,1126 **** --- 1125,1135 ---- #endif /* HAVE_MBREGEX */ + /* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: fdm=marker + * vim: noet sw=4 ts=4 + */