diff --git a/programs/cmm/lib/strings.h b/programs/cmm/lib/strings.h index 96284db9ad..26e51b2992 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 9adbfe4dc2..7a9f1741b7 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;