mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
fluxbox: fix build with gcc>=11
This commit is contained in:
parent
2e36a014d9
commit
2ea33ea466
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
From 22866c4d30f5b289c429c5ca88d800200db4fc4f Mon Sep 17 00:00:00 2001
|
||||
From: John Sennesael <john@aminking.com>
|
||||
Date: Mon, 2 Nov 2015 15:14:32 -0600
|
||||
Subject: [PATCH] fixes bug #1138
|
||||
|
||||
---
|
||||
util/fluxbox-remote.cc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/util/fluxbox-remote.cc b/util/fluxbox-remote.cc
|
||||
index 59852e6a7..504015b50 100644
|
||||
--- a/util/fluxbox-remote.cc
|
||||
+++ b/util/fluxbox-remote.cc
|
||||
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
|
||||
if (strcmp(cmd, "result") == 0) {
|
||||
XTextProperty text_prop;
|
||||
if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
|
||||
- && text_prop.value > 0
|
||||
+ && text_prop.value != 0
|
||||
&& text_prop.nitems > 0) {
|
||||
|
||||
printf("%s", text_prop.value);
|
Loading…
Add table
Reference in a new issue