]> git.eshelyaron.com Git - emacs.git/commit
Prefer make_formatted_string in svg_load_image
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jan 2025 06:15:49 +0000 (22:15 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:06:26 +0000 (19:06 +0100)
commit2dd766a546d783c7b93518b8d1ebc82f8fb57248
tree758d5100e439fd4ac1eba05d27d65895ec65026e
parent6d2159bcd8ba20801a09ed6c9f09ab62c418142e
Prefer make_formatted_string in svg_load_image

* src/image.c (svg_load_image): Prefer make_formatted_string to
snprintf, as this simplifies the code and does not truncate the
resulting string arbitrarily.

(cherry picked from commit c50e8c24247eb69d85b004a72197e710c8e1e32a)
src/image.c