File: 37-Fix-crash-with-debugging-enabled.patch

package info (click to toggle)
afterstep 2.2.12-18.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 33,184 kB
  • sloc: ansic: 201,695; sh: 5,894; xml: 3,721; makefile: 2,094; perl: 1,558; cpp: 811
file content (22 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Robert Luberda <robert@debian.org>
Date: Wed, 14 Aug 2013 22:54:46 +0200
Subject: 37 Fix crash with debugging enabled

Fix a crash occurring when afterstep was configured with --enable-debug.
---
 libAfterStep/hints.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libAfterStep/hints.c b/libAfterStep/hints.c
index 8c5a165..bb2a60a 100644
--- a/libAfterStep/hints.c
+++ b/libAfterStep/hints.c
@@ -2983,7 +2983,7 @@ void print_clean_hints (stream_func func, void *stream, ASHints * clean)
 	if (clean->client_cmd)
 		func (stream, "CLEAN.client_cmd = \"%s\";\n", clean->client_cmd);
 
-	func (stream, "CLEAN.extwm_window_type = \"%s\";\n", clean->extwm_window_type);
+	func (stream, "CLEAN.extwm_window_type = \"%ld\";\n", clean->extwm_window_type);
 }
 
 void