]> git.eshelyaron.com Git - emacs.git/commit
Use strnlen to avoid unnecessary work in pgtkfns.c
authorStefan Kangas <stefankangas@gmail.com>
Tue, 16 Jul 2024 02:34:53 +0000 (04:34 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:31:46 +0000 (12:31 +0200)
commitf63ea1ab3a1eb5ed3489eb5648224909cc0c916e
tree772617c5c1578e1c6c36b166de3cdce550fe76ba
parent85c0ed4a0f5fbce07544c8c03885623299567c19
Use strnlen to avoid unnecessary work in pgtkfns.c

* src/pgtkfns.c (pgtk_get_defaults_value, pgtk_set_defaults_value):
Factor out new function...
(pgtk_check_resource_key_length): ...to here.  Avoid unnecessary work by
using strnlen.

(cherry picked from commit d00a10333f06d30fee93ba3ee033e74dc4ff85bc)
src/pgtkfns.c