Fix query being overflowed

This commit is contained in:
Jackz 2022-07-13 17:52:25 -05:00
parent a7c7ad690f
commit 20552c2b77
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 4 additions and 3 deletions

View file

@ -84,7 +84,8 @@ public Action OnBanIdentity(const char[] identity, int time, int flags, const ch
}else{
executor = "CONSOLE";
}
static char query[255];
char query[512];
// Setup expiration date
@ -136,9 +137,9 @@ public Action OnBanClient(int client, int time, int flags, const char[] reason,
}
GetClientIP(client, ip, sizeof(ip));
char query[255];
char query[512];
static char expiresDate[64];
char expiresDate[64];
if(time > 0) {
Format(expiresDate, sizeof(expiresDate), "%d", GetTime() + (time * 60));
} else {