* doprnt.c (doprnt): Truncate multibyte char correctly.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jun 2012 05:11:51 +0000 (22:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jun 2012 05:11:51 +0000 (22:11 -0700)
commit86f158bc15cd63740131ca102179c760a691e4c8
tree98c2e9ae3581147606cd4604f8cc122cf6faba4e
parentb7014632a628bfb2a44fdb426e7ab145cc6a2eb5
* doprnt.c (doprnt): Truncate multibyte char correctly.

Without this change, doprnt (buf, 2, "%s", FORMAT_END, AP)
would mishandle a string argument "Xc" if X was a multibyte
character of length 2: it would truncate after X's first byte
rather than including all of X.
src/ChangeLog
src/doprnt.c