Daniel C. Sobral 8f9e434f46 altoffset() always returned whenever it recursed, because at the end
of the processing of the recursion, "scan" would be pointing to O_CH
(or O_QUEST), which would then be interpreted as being the end character
for altoffset().

We avoid this by properly increasing scan before leaving the switch.

Without this, something like (a?b?)?cc would result in a g->moffset of
1 instead of 2.

I added a case to the soon-to-be-imported regex(3) test code to catch
this error.
2000-07-09 17:45:30 +00:00
..
2000-07-06 20:04:34 +00:00
1999-08-28 00:22:10 +00:00
2000-07-07 08:24:50 +00:00
1999-08-28 00:22:10 +00:00
2000-07-08 18:17:12 +00:00
1999-09-29 15:18:46 +00:00
1999-08-28 00:22:10 +00:00