]> git.eshelyaron.com Git - emacs.git/commit
Fix unlikely eassert failure in pgtk_enumerate_devices
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jan 2025 06:15:50 +0000 (22:15 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:07:13 +0000 (19:07 +0100)
commit3a6ccfd335418efb614ec2145d7c75ada89d80cf
treee09b3a0e996214e374a3e0498096878da2b89658
parent7d887720cca88a4af6105230980f0a17be3b714d
Fix unlikely eassert failure in pgtk_enumerate_devices

* src/pgtkterm.c (pgtk_enumerate_devices): Prefer
make_formatted_string to snprintf + build_string + eassert, as
it’s simpler and won’t crash Emacs if the eassert fails.

(cherry picked from commit 901659bb7046bef4ca10490cf47644fb2bc6d753)
src/pgtkterm.c