Skip to content
Snippets Groups Projects
Commit 559ca072 authored by rswindell's avatar rswindell
Browse files

Version notice string does not need to be copied before crc calculation.

parent c8a14c19
No related branches found
No related tags found
No related merge requests found
......@@ -2972,9 +2972,9 @@ void DLLCALL bbs_thread(void* arg)
status("Initializing");
/* Defeat the lameo hex0rs - the name and copyright must remain intact */
sprintf(str,"%.10s",VERSION_NOTICE);
if(crc32(COPYRIGHT_NOTICE,0)!=COPYRIGHT_CRC || crc32(str,0)!=SYNCHRONET_CRC) {
lprintf("!Corrupted library file");
if(crc32(COPYRIGHT_NOTICE,0)!=COPYRIGHT_CRC
|| crc32(VERSION_NOTICE,10)!=SYNCHRONET_CRC) {
lprintf("!CORRUPTED LIBRARY FILE");
cleanup(1);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment