Update libregexp with recent bug fixes from Plan 9.
This commit is contained in:
parent
4da83e7cce
commit
62390091b7
12 changed files with 111 additions and 81 deletions
|
|
@ -53,9 +53,10 @@ regsub(char *sp, /* source string */
|
|||
ssp < mp[0].e.ep; ssp++)
|
||||
if(dp < ep)
|
||||
*dp++ = *ssp;
|
||||
}else
|
||||
}else{
|
||||
if(dp < ep)
|
||||
*dp++ = *sp;
|
||||
}
|
||||
sp++;
|
||||
}
|
||||
*dp = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue