* doprnt.c (doprnt): Truncate multibyte char correctly.
commit13bfb183bb286b9d1b01fc4e4bc44e2cc94a7ec1
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jun 2012 05:11:51 +0000 (6 22:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Jun 2012 05:11:51 +0000 (6 22:11 -0700)
treecd3479ec10d7bd021ca3600a8e8fa416c3d4ebd8
parenta76cf230af0b008ee7f46a0d9963dded517a250e
* 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