[PATCH:xscope 5/6] Increase buffer length to avoid truncation.

Thomas Klausner tk at giga.or.at
Tue Dec 7 07:59:17 UTC 2021


---
 scope.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scope.c b/scope.c
index 6028eab..88fae33 100644
--- a/scope.c
+++ b/scope.c
@@ -1273,7 +1273,7 @@ ConnectToServer(Boolean report)
     if (port == ScopePort &&
         ((ServerHostName[0] == '\0') || strcmp(ServerHostName, ScopeHost) == 0))
     {
-        char error_message[100];
+        char error_message[300];
 
         snprintf(error_message, sizeof(error_message),
                  "Trying to attach to myself: %s,%d\n", ServerHostName, port);
-- 
2.34.1



More information about the xorg-devel mailing list