From: Andreas Schwab Date: Tue, 2 Dec 2008 22:34:12 +0000 (+0000) Subject: (doprnt1): Fix size of charbuf. X-Git-Tag: emacs-pretest-23.0.90~1360 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f625c6cd62bbf9f63d03f027a4a0214a895f28e;p=emacs.git (doprnt1): Fix size of charbuf. --- diff --git a/src/ChangeLog b/src/ChangeLog index 095b36bdce3..c7e9a9cc457 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-12-02 Andreas Schwab + + * doprnt.c (doprnt1): Fix size of charbuf. + 2008-12-02 Chong Yidong * keyboard.c (timer_check): Revert last change. diff --git a/src/doprnt.c b/src/doprnt.c index c7c27bac4c3..14d18366161 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -117,7 +117,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) char fixed_buffer[20]; /* Default buffer for small formatting. */ char *fmtcpy; int minlen; - unsigned char charbuf[5]; /* Used for %c. */ + unsigned char charbuf[MAX_MULTIBYTE_LENGTH + 1]; /* Used for %c. */ if (format_end == 0) format_end = format + strlen (format);