Official eMule-Board: Fix For Clientcredits.cpp - Official eMule-Board

Jump to content


Page 1 of 1

Fix For Clientcredits.cpp for debug mode

#1 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1127
  • Joined: 25-June 03

Posted 27 July 2005 - 01:34 PM

in ClientCredits.cpp, bool CClientCreditsList::Debug_CheckCrypting()
there's a memset with mixed arguments

Quote

...
bool CClientCreditsList::Debug_CheckCrypting()
{
  ...
  uchar pachSignature[200];
  memset(pachSignature,200,0);
  ...
}
...

should be

Quote

...
bool CClientCreditsList::Debug_CheckCrypting()
{
  ...
  uchar pachSignature[200];
  memset(pachSignature,0,200); // Avi3k: fixed args order
  ...
}
...

another way to set the array to zero will be

Quote

uchar pachSignature[200]={0};



Avi3k
retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users