diff options
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r-- | src/login_sql/login.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index bf4acb534..edc78d48f 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -262,7 +262,11 @@ void send_GM_accounts(int fd) { WBUFL(buf,len) = gm_account_db[i].account_id;
WBUFB(buf,len+4) = (unsigned char)gm_account_db[i].level;
len += 5;
+ if (len >= 32000) {
+ ShowWarning("send_GM_accounts: Too many accounts! Only %d out of %d were sent.\n", i, GM_num);
+ break;
}
+ }
WBUFW(buf,2) = len;
if (fd == -1)
charif_sendallwos(-1, buf, len);
|