Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb93824
)
fix crash in get_win_name.
author
David Hill
<dhill@conformal.com>
Thu, 12 Jul 2012 17:28:49 +0000
(13:28 -0400)
committer
Reginald Kennedy
<rk@rejii.com>
Fri, 20 Jul 2012 21:58:32 +0000
(
05:58
+0800)
Only wipe the reply if the reply was successful.
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
0d8242e
..
868ef20
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-3786,10
+3786,10
@@
get_win_name(xcb_window_t win)
}
memcpy(name, r.name, r.name_len);
name[r.name_len] = '\0';
}
memcpy(name, r.name, r.name_len);
name[r.name_len] = '\0';
+
+ xcb_get_text_property_reply_wipe(&r);
}
}
- xcb_get_text_property_reply_wipe(&r);
-
return (name);
}
return (name);
}