From 559ca072ee4a33f26a30530e05176cf3cf6e94e3 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 29 Aug 2001 16:14:03 +0000 Subject: [PATCH] Version notice string does not need to be copied before crc calculation. --- src/sbbs3/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 26eddeffc7..25b3db72aa 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -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; } -- GitLab