From c65646c2474d22948c604168a68f6626a645d1d2 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Thu, 26 Sep 2024 16:10:11 +0100 Subject: fix(diff): use mmfile_t in linematch Problem: Linematch used to use strchr to navigate a string, however strchr does not supoprt embedded NULs. Solution: Use `mmfile_t` instead of `char *` in linematch and introduce `strnchr()`. Also remove heap allocations from `matching_char_iwhite()` Fixes: #30505 --- src/clint.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/clint.py') diff --git a/src/clint.py b/src/clint.py index 1ed01382c8..b57bbe354b 100755 --- a/src/clint.py +++ b/src/clint.py @@ -881,6 +881,7 @@ def CheckIncludes(filename, lines, error): "nvim/func_attr.h", "termkey/termkey.h", "vterm/vterm.h", + "xdiff/xdiff.h", ] for i in check_includes_ignore: -- cgit