From: Paul Eggert Date: Thu, 26 Aug 2021 23:15:25 +0000 (-0700) Subject: regex: fix typo in previous patch X-Git-Tag: v1.0~2643 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=eaccb8cbc64c192942c160dd61439b6f9f769448;p=gnulib.git regex: fix typo in previous patch Fix typo in previous patch. Somehow I managed to omit the main point of the patch.... --- diff --git a/lib/regex.h b/lib/regex.h index 540c323163..118f9b4beb 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -680,9 +680,8 @@ extern int regcomp (regex_t *_Restrict_ __preg, extern int regexec (const regex_t *_Restrict_ __preg, const char *_Restrict_ __String, size_t __nmatch, - regmatch_t __pmatch[_Restrict_arr_], - int __eflags) - _Attr_access_ ((__write_only__, 4, 3)); + regmatch_t __pmatch[_Restrict_arr_ _ARG_NELTS_ (__nmatch)], + int __eflags); extern size_t regerror (int __errcode, const regex_t *_Restrict_ __preg, char *_Restrict_ __errbuf, size_t __errbuf_size)