riched20: Prevent overflow on richedit debug channel.

This commit is contained in:
Alex Villacís Lasso 2007-09-15 21:32:20 -05:00 committed by Alexandre Julliard
parent bbe9104514
commit 157a0199e9
1 changed files with 1 additions and 1 deletions

View File

@ -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;