# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/fluxbox/hotfix-text_prop.patch # Copyright (C) 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- util/fluxbox-remote.cc:76:32: error: ordered comparison of pointer with integer zero ('unsigned char*' and 'int') diff --git a/util/fluxbox-remote.cc b/util/fluxbox-remote.cc index 59852e6..504015b 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);