]> git.eshelyaron.com Git - emacs.git/commit
Use SBYTES instead of strlen in treesit.c
authorStefan Kangas <stefankangas@gmail.com>
Mon, 22 Jul 2024 10:21:25 +0000 (12:21 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:39:35 +0000 (12:39 +0200)
commita53122d9b4a9eac32b4cdaa8fbe298f0e0ebd2c2
tree09d423bb3474f9942bd2e4e26210324f9803ae26
parent1fcfad9e67c8ea996f87a522cfacefaf49e16ec8
Use SBYTES instead of strlen in treesit.c

* src/treesit.c (treesit_ensure_query_compiled)
(Ftreesit_node_child_by_field_name, treesit_initialize_query):
Use SBYTES instead of strlen.

(cherry picked from commit d995429e7bc2bc5b5d87db45dbbaca121f8118e5)
src/treesit.c