for ( p = begin = result, subs_len = 0; p[ 0 ] != '\0'; p++ ) {
/*
- * Keep only single escapes '\'
+ * Keep only single escapes '%'
*/
if ( p[ 0 ] != REWRITE_SUBMATCH_ESCAPE ) {
continue;
}
if ( p[ 1 ] == REWRITE_SUBMATCH_ESCAPE ) {
- memmove((char *)p, p + 1, strlen( p ) );
+ AC_MEMCPY((char *)p, p + 1, strlen( p ) );
continue;
}
/*
* Substitution pattern
*/
- if ( isdigit( p[ 1 ] ) ) {
+ if ( isdigit( (unsigned char) p[ 1 ] ) ) {
int d = p[ 1 ] - '0';
struct rewrite_submatch **tmpsm;