From 4849dde96b69695a842bd99a547e25fd5ac83e9d Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 8 Oct 2019 02:07:26 +0000
Subject: [PATCH] Remove the socket library from the version info - not too
 relevant or interesting and on many platforms, unavailable anyway.

---
 src/sbbs3/ver.cpp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/sbbs3/ver.cpp b/src/sbbs3/ver.cpp
index 3440e92376..2d5137684e 100644
--- a/src/sbbs3/ver.cpp
+++ b/src/sbbs3/ver.cpp
@@ -64,7 +64,7 @@ char* socklib_version(char* str, char* winsock_ver)
 
 #else
 	
-	strcpy(str,"No socket library version available");
+	strcpy(str,"");
 
 #endif
 
@@ -107,8 +107,6 @@ void sbbs_t::ver()
 	}
 #endif
 
-	socklib_version(str,SOCKLIB_DESC);
-
 #ifdef USE_CRYPTLIB
 	if(is_crypt_initialized()) {
 		int cl_major=0, cl_minor=0, cl_step=0;
@@ -117,11 +115,11 @@ void sbbs_t::ver()
 		result = cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MINORVERSION, &cl_minor);
 		result = cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_STEPPING, &cl_step);
 		(void)result;
-		sprintf(str + strlen(str), "  cryptlib %u.%u.%u (%u)", cl_major, cl_minor, cl_step, CRYPTLIB_VERSION);
+		sprintf(str, "  cryptlib %u.%u.%u (%u)", cl_major, cl_minor, cl_step, CRYPTLIB_VERSION);
+		center(str);
+		CRLF;
 	}
 #endif
-	center(str);
-	CRLF;
 
 	center(os_version(str));
 }
-- 
GitLab