mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 21:33:20 +00:00
Fix query being overflowed
This commit is contained in:
parent
a7c7ad690f
commit
20552c2b77
2 changed files with 4 additions and 3 deletions
Binary file not shown.
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue