Package: wm2 / 4+svn20090216-3

0001-make-execl-calls-64-bit-clean.patch Patch series | 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 393ab44751c4914ca496623d3f6f5e7ee676d070 Mon Sep 17 00:00:00 2001
From: Bernhard R. Link <brlink@debian.org>
Date: Sun, 3 Jan 2010 15:19:34 +0100
Subject: make execl calls 64 bit clean

execl/execlp expects a 0 pointer as last argument.
Giving it only 0 causes a 0 int (32 bit) as variable argument,
while pointers are 64 bit on 64 bit architectures.
---
 Manager.C |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Manager.C b/Manager.C
index 1523160..5840692 100644
--- a/Manager.C
+++ b/Manager.C
@@ -551,16 +551,16 @@ void WindowManager::spawn()
 	    }
 
 	    if (CONFIG_EXEC_USING_SHELL) {
-		execl(m_shell, m_shell, "-c", CONFIG_NEW_WINDOW_COMMAND, 0);
+		execl(m_shell, m_shell, "-c", CONFIG_NEW_WINDOW_COMMAND, (char*)0);
 		fprintf(stderr, "wm2: exec %s", m_shell);
 		perror(" failed");
 	    }
 
-	    execlp(CONFIG_NEW_WINDOW_COMMAND, CONFIG_NEW_WINDOW_COMMAND, 0);
+	    execlp(CONFIG_NEW_WINDOW_COMMAND, CONFIG_NEW_WINDOW_COMMAND, (char*)0);
 	    fprintf(stderr, "wm2: exec %s", CONFIG_NEW_WINDOW_COMMAND);
 	    perror(" failed");
 
-	    execlp("xterm", "xterm", "-ut", 0);
+	    execlp("xterm", "xterm", "-ut", (char*)0);
 	    perror("wm2: exec xterm failed");
 	    exit(1);
 	}
-- 
1.5.6.5