From ae7ec4802a81770ff164e465b8d1fb51624ca093 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 7 Feb 2016 02:07:38 +0100 Subject: Windows:Fix various issues and warnings reported by static code analysis tool Coverity. --- src/Common/Combo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Combo.c') diff --git a/src/Common/Combo.c b/src/Common/Combo.c index 56e0afc5..0340b23a 100644 --- a/src/Common/Combo.c +++ b/src/Common/Combo.c @@ -232,7 +232,7 @@ void DumpCombo (HWND hComboBox, int bClear) if (szTmp[0] != 0) { wchar_t q[MAX_PATH * 2] = { 0 }; - XmlQuoteTextW (szTmp, q, sizeof (q)); + XmlQuoteTextW (szTmp, q, ARRAYSIZE (q)); fwprintf (f, L"\n\t\t%s", q); } -- cgit v1.2.3