Mercurial > emacs
diff src/ccl.c @ 88104:d4d0381a59d8
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1032
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 01 Feb 2008 02:40:23 +0000 |
parents | 5297ed06b207 88528794e364 |
children | 4bb19b57806d |
line wrap: on
line diff
--- a/src/ccl.c Fri Feb 01 01:43:36 2008 +0000 +++ b/src/ccl.c Fri Feb 01 02:40:23 2008 +0000 @@ -748,7 +748,7 @@ int bytes = SINGLE_BYTE_CHAR_P (ch) ? 1: CHAR_BYTES (ch); \ if (!dst) \ CCL_INVALID_CMD; \ - else if (dst + bytes + extra_bytes < (dst_bytes ? dst_end : src)) \ + else if (dst + bytes + extra_bytes <= (dst_bytes ? dst_end : src)) \ { \ if (bytes == 1) \ { \ @@ -775,7 +775,7 @@ int bytes = CHAR_BYTES (ch); \ if (!dst) \ CCL_INVALID_CMD; \ - else if (dst + bytes + extra_bytes < (dst_bytes ? dst_end : src)) \ + else if (dst + bytes + extra_bytes <= (dst_bytes ? dst_end : src)) \ { \ if (CHAR_VALID_P ((ch), 0)) \ dst += CHAR_STRING ((ch), dst); \