diff options
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/print.c b/src/print.c index 613660b582c..a011cb885fa 100644 --- a/src/print.c +++ b/src/print.c @@ -401,7 +401,7 @@ strout (ptr, size, size_byte, printcharfun, multibyte) int len; for (i = 0; i < size_byte; i += len) { - int ch = STRING_CHAR_AND_LENGTH (ptr + i, size_byte - i, len); + int ch = STRING_CHAR_AND_LENGTH (ptr + i, len); insert_char (ch); } } @@ -427,7 +427,7 @@ strout (ptr, size, size_byte, printcharfun, multibyte) corresponding character code before handing it to PRINTCHAR. */ int len; - int ch = STRING_CHAR_AND_LENGTH (ptr + i, size_byte - i, len); + int ch = STRING_CHAR_AND_LENGTH (ptr + i, len); PRINTCHAR (ch); i += len; } @@ -519,8 +519,7 @@ print_string (string, printcharfun) /* Here, we must convert each multi-byte form to the corresponding character code before handing it to PRINTCHAR. */ int len; - int ch = STRING_CHAR_AND_LENGTH (SDATA (string) + i, - size_byte - i, len); + int ch = STRING_CHAR_AND_LENGTH (SDATA (string) + i, len); PRINTCHAR (ch); i += len; } @@ -1645,8 +1644,7 @@ print_object (obj, printcharfun, escapeflag) if (multibyte) { - c = STRING_CHAR_AND_LENGTH (str + i_byte, - size_byte - i_byte, len); + c = STRING_CHAR_AND_LENGTH (str + i_byte, len); i_byte += len; } else |