From 74f935d94f754b28300518ecc08073430e7808fb Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 30 Jan 2019 21:39:50 +0300 Subject: [PATCH] common: fix COM_IsSafeFileToDownload extension check --- engine/common/common.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/engine/common/common.c b/engine/common/common.c index 286bccb0..2c09cf18 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -20,18 +20,18 @@ GNU General Public License for more details. #include "client.h" #include "library.h" -const char *file_exts[10] = -{ - ".cfg", - ".lst", - ".exe", - ".vbs", - ".com", - ".bat", - ".dll", - ".ini", - ".log", - ".sys", +static const char *file_exts[] = +{ + "cfg", + "lst", + "exe", + "vbs", + "com", + "bat", + "dll", + "ini", + "log", + "sys", }; #ifdef _DEBUG