summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/msgoptions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp
index e2cc34d99e..b92bc17027 100644
--- a/src/core/stdmsg/src/msgoptions.cpp
+++ b/src/core/stdmsg/src/msgoptions.cpp
@@ -55,7 +55,7 @@ static BYTE MsgDlgGetFontDefaultCharset(const TCHAR* szFont)
bool LoadMsgDlgFont(int i, LOGFONT* lf, COLORREF * colour)
{
- if (i > SIZEOF(fontOptionsList))
+ if (i >= SIZEOF(fontOptionsList))
return false;
char str[32];