+2023-06-04 Bruno Haible <bruno@clisp.org>
+
+ uniname/uniname: Improve comments.
+ * lib/uniname/uniname.c (unicode_character_name): Fix comments.
+
2023-06-03 Bruno Haible <bruno@clisp.org>
classpath, csharpexec: Avoid "candidate for attribute 'malloc'" warning.
unsigned int index3;
const char *q;
- /* buf needs to have at least 16 + 7 bytes here. */
+ /* buf needs to have at least 16 + 7 + 1 bytes here. */
memcpy (buf, "HANGUL SYLLABLE ", 16);
ptr = buf + 16;
char *ptr;
int i;
- /* buf needs to have at least 28 + 5 bytes here. */
+ /* buf needs to have at least 28 + 5 + 1 bytes here. */
memcpy (buf, "CJK COMPATIBILITY IDEOGRAPH-", 28);
ptr = buf + 28;
/* Special case for variation selectors. Keeps the tables
small. */
- /* buf needs to have at least 19 + 3 bytes here. */
+ /* buf needs to have at least 19 + 3 + 1 bytes here. */
sprintf (buf, "VARIATION SELECTOR-%d",
c <= 0xFE0F ? c - 0xFE00 + 1 : c - 0xE0100 + 17);
return buf;
if (words != NULL)
{
/* Found it in unicode_index_to_name. Now concatenate the words. */
- /* buf needs to have at least UNICODE_CHARNAME_MAX_LENGTH bytes. */
+ /* buf needs to have at least UNICODE_CHARNAME_MAX_LENGTH + 1
+ bytes. */
char *ptr = buf;
for (;;)
{