diff options
author | Stephane Chazelas <stephane@chazelas.org> | 2024-03-09 11:45:46 +0000 |
---|---|---|
committer | Stephane Chazelas <stephane@chazelas.org> | 2024-03-09 11:45:46 +0000 |
commit | 47c7bc9b1493c7374f076b5471cfd57ee30f4ba5 (patch) | |
tree | 3e3152ddeee1e0572a104871156670559f429ad1 /Src | |
parent | fa9b3ad5977ede0a4635cd86276dd0f0c2f6f03e (diff) | |
download | zsh-47c7bc9b1493c7374f076b5471cfd57ee30f4ba5.tar.gz zsh-47c7bc9b1493c7374f076b5471cfd57ee30f4ba5.tar.xz zsh-47c7bc9b1493c7374f076b5471cfd57ee30f4ba5.zip |
52721: fix metafication and regexp/subject confusion in pcre_match error message
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c index a49d1a307..67157cc01 100644 --- a/Src/Modules/pcre.c +++ b/Src/Modules/pcre.c @@ -405,7 +405,7 @@ bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func)) else { PCRE2_UCHAR buffer[256]; pcre2_get_error_message(ret, buffer, sizeof(buffer)); - zwarnnam(nam, "error in pcre matching for /%s/: %s", plaintext, buffer); + zwarnnam(nam, "error in pcre matching for %s: %s", *args, buffer); } if (pcre_mdata) |