File: 0001-https-bugs.launchpad.net-ubuntu-source-eboard-bug-13.patch

package info (click to toggle)
eboard 1.1.3-0.4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,144 kB
  • sloc: cpp: 24,340; perl: 1,038; ansic: 279; sh: 105; makefile: 58
file content (21 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From ed33049aff2cefd7508bcda8ab738b8ec871c948 Mon Sep 17 00:00:00 2001
From: Christian Palazzo <info@christianpalazzo.org>
Date: Thu, 30 Apr 2020 00:43:21 +0200
Subject: https://bugs.launchpad.net/ubuntu/+source/eboard/+bug/1306419

diff --git a/proto_xboard.cc b/proto_xboard.cc
index ba48aa1..edabe1b 100644
--- a/proto_xboard.cc
+++ b/proto_xboard.cc
@@ -1083,7 +1083,7 @@ void CraftyProtocol::readDialog() {
   snprintf(EngineCommandLine,512,"crafty bookpath=%s logpath=%s tbpath=%s",
 	   BookPath,LogPath,LogPath);
   if (!global.env.Home.empty())
-    snprintf(EngineRunDir,512,"%s/.eboard/craftylog",global.env.Home.c_str());
+    snprintf(EngineRunDir,256,"%s/.eboard/craftylog",global.env.Home.c_str());
   else
     strcpy(EngineRunDir,"/tmp");
 
-- 
2.20.1