…, so don't assume the output lengths will match after we retry with a larger buffer (POSIX is silent on this, though it does say the result of regexec is undefined if the locale changed from when regcomp was called)
b4c1a08