Module: wine Branch: master Commit: 157a0199e99690601e64c4b808a8b737213aa1b0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=157a0199e99690601e64c4b808... Author: Alex Villacís Lasso <a_villacis(a)palosanto.com> Date: Sat Sep 15 21:32:20 2007 -0500 riched20: Prevent overflow on richedit debug channel. --- dlls/riched20/writer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index fa9efa0..68088f7 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -92,7 +92,7 @@ ME_StreamOutMove(ME_OutStream *pStream, const char *buffer, int len) int space = STREAMOUT_BUFFER_SIZE - pStream->pos; int fit = min(space, len); - TRACE("%u:%u:%.*s\n", pStream->pos, fit, fit, buffer); + TRACE("%u:%u:%s\n", pStream->pos, fit, debugstr_an(buffer,fit)); memmove(pStream->buffer + pStream->pos, buffer, fit); len -= fit; buffer += fit;