From 8dd66bc927ba0ac3f4ce9745b90da372fce46185 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 16 Dec 2011 13:06:45 +0100 Subject: [PATCH] riched20: Avoid hardcoding the Unicode string literal lengths. --- dlls/riched20/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index 45047bd8020..a5e5d509cb3 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -927,7 +927,7 @@ static BOOL ME_StreamOutText(ME_TextEditor *editor, ME_OutStream *pStream, if (!editor->bEmulateVersion10 && cursor.pRun->member.run.nFlags & MERF_ENDPARA) { - static const WCHAR szEOL[2] = { '\r', '\n' }; + static const WCHAR szEOL[] = { '\r', '\n' }; /* richedit 2.0 - all line breaks are \r\n */ if (dwFormat & SF_UNICODE)