emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CCL_WRITE_CHAR and CCL_WRITE_MULTIBYTE_CHAR


From: YAMAMOTO Mitsuharu
Subject: CCL_WRITE_CHAR and CCL_WRITE_MULTIBYTE_CHAR
Date: Thu, 17 Jan 2008 11:37:34 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

I suspect the boundary checking in CCL_WRITE_CHAR and
CCL_WRITE_MULTIBYTE_CHAR can be relaxed by 1.  I mean,

    else if (dst + bytes + extra_bytes <= (dst_bytes ? dst_end : src))  \

instead of 

    else if (dst + bytes + extra_bytes < (dst_bytes ? dst_end : src))   \

I have a situation where the destination buffer size is tight and the
last byte is not filled.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]