From 277bbde697f3e7604c124f8d6278616097f0813e Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 8 Aug 2020 18:04:01 +0000
Subject: [PATCH] Trim trailing-whitespace off of Windows socket error
 description strings.

---
 src/xpdev/sockwrap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xpdev/sockwrap.c b/src/xpdev/sockwrap.c
index 228851b872..5cf7832c87 100644
--- a/src/xpdev/sockwrap.c
+++ b/src/xpdev/sockwrap.c
@@ -513,6 +513,7 @@ DLLEXPORT const char* socket_strerror(int error_number)
 		msg,
 		sizeof(msg),
 		NULL);
+	truncsp(msg);
 	return msg;
 }
 #endif
-- 
GitLab