File: 0003-DEBIAN-Log-full-config-path-instead-of-the-16-char-b.patch

package info (click to toggle)
gemrb 0.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 20,168 kB
  • sloc: cpp: 127,105; python: 30,385; ansic: 2,526; objc: 733; sh: 315; java: 105; perl: 98; xml: 69; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 990 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Beren Minor <beren.minor+git@gmail.com>
Date: Fri, 15 Aug 2014 00:07:04 +0200
Subject: DEBIAN: Log full config path instead of the 16-char buffer that
 overflows.

---
 gemrb/core/InterfaceConfig.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gemrb/core/InterfaceConfig.cpp b/gemrb/core/InterfaceConfig.cpp
index 8c596d1..bb24408 100644
--- a/gemrb/core/InterfaceConfig.cpp
+++ b/gemrb/core/InterfaceConfig.cpp
@@ -183,9 +183,9 @@ bool CFGConfig::InitWithINIData(DataStream* const cfgStream)
 	}
 
 	if (isValid) {
-		Log(WARNING, "Config", "attempting to replace config values with contents of %s", cfgStream->filename);
+		Log(WARNING, "Config", "attempting to replace config values with contents of %s", cfgStream->originalfile);
 	} else {
-		Log(MESSAGE, "Config", "attempting to initialize config with %s", cfgStream->filename);
+		Log(MESSAGE, "Config", "attempting to initialize config with %s", cfgStream->originalfile);
 	}
 
 	isValid = false;