diff --git a/programs/cmm/lib/strings.h b/programs/cmm/lib/strings.h index 96284db9a..26e51b299 100644 --- a/programs/cmm/lib/strings.h +++ b/programs/cmm/lib/strings.h @@ -75,6 +75,7 @@ L2: inline fastcall int strlcpy(dword ESI, EDI, EBX) { + if (EBX<0) return -1; EDX=0; do { DSBYTE[ESI]=DSBYTE[EDI]; diff --git a/programs/cmm/liza/mail_box.c b/programs/cmm/liza/mail_box.c index 9adbfe4dc..7a9f1741b 100644 --- a/programs/cmm/liza/mail_box.c +++ b/programs/cmm/liza/mail_box.c @@ -128,7 +128,7 @@ void MailBoxNetworkProcess() if (!mailstart) { StopConnect("Realloc error!"); break;} } - //if (mailsize>9000) + if (mailsize>9000) { load_persent = mailend - mailstart * 100 ; load_persent /= mailsize - 1024;