0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 04:38:06 +00:00
packages/utils/zsh/patches/010-gcc14.patch
Rosen Penev 97d5d2555c zsh: fix compilation with GCC14
Upstream backport and local patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-08 17:31:38 -07:00

12 lines
390 B
Diff

--- a/Src/Modules/pcre.c
+++ b/Src/Modules/pcre.c
@@ -152,7 +152,7 @@ zpcre_get_substrings(pcre2_code *pat, ch
int nelem = captured_count - 1;
/* Set to the offsets of the complete match */
if (want_offset_pair) {
- sprintf(offset_all, "%ld %ld", ovec[0], ovec[1]);
+ sprintf(offset_all, "%zd %zd", ovec[0], ovec[1]);
setsparam("ZPCRE_OP", ztrdup(offset_all));
}
/*