Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
couple unused vars and bad pointer checks, from clang
[spectrwm.git]
/
lib
/
swm_hack.c
diff --git
a/lib/swm_hack.c
b/lib/swm_hack.c
index
52f2a5c
..
e6df1b0
100644
(file)
--- a/
lib/swm_hack.c
+++ b/
lib/swm_hack.c
@@
-1,4
+1,3
@@
-/* $scrotwm$ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Ryan McBride <mcbride@countersiege.com>
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Ryan McBride <mcbride@countersiege.com>
@@
-107,7
+106,8
@@
set_property(Display *dpy, Window id, char *name, char *val)
if (atom)
if (snprintf(prop, SWM_PROPLEN, "%s", val) < SWM_PROPLEN)
(*xcp)(dpy, id, atom, XA_STRING,
if (atom)
if (snprintf(prop, SWM_PROPLEN, "%s", val) < SWM_PROPLEN)
(*xcp)(dpy, id, atom, XA_STRING,
- 8, PropModeReplace, (unsigned char *)prop, SWM_PROPLEN);
+ 8, PropModeReplace, (unsigned char *)prop,
+ strlen((char *)prop));
}
typedef Window(CWF) (Display * _display, Window _parent, int _x,
}
typedef Window(CWF) (Display * _display, Window _parent, int _x,