]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix error message in charset.c
authorEli Zaretskii <eliz@gnu.org>
Thu, 24 Oct 2024 14:41:02 +0000 (17:41 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Oct 2024 06:31:53 +0000 (08:31 +0200)
* src/charset.c (Fdefine_charset_internal): Don't reference
uninitialized value in error message.  (Bug#73985)

(cherry picked from commit f33bc659c9110682174157086c60203d55725d20)

src/charset.c

index e8d0826f4c2c412ccd3af1a9ea223f3532fbe749..f7d80cc3f3e640997c19dc7c7c84d7c5abd4b720 100644 (file)
@@ -1007,7 +1007,8 @@ usage: (define-charset-internal ...)  */)
 
       i = CODE_POINT_TO_INDEX (&charset, charset.max_code);
       if (MAX_CHAR - charset.code_offset < i)
-       error ("Unsupported max char: %d", charset.max_char);
+       error ("Unsupported max char: %d + %ud > MAX_CHAR (%d)",
+              i, charset.max_code, MAX_CHAR);
       charset.max_char = i + charset.code_offset;
       i = CODE_POINT_TO_INDEX (&charset, charset.min_code);
       charset.min_char = i + charset.code_offset;