summaryrefslogtreecommitdiff
path: root/app/cwm/xutil.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-12-17 16:10:44 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-12-17 16:10:44 +0000
commit8710551cd749757455447a9e31fc91b6bf3c2d57 (patch)
treec961fd2168b1e31286adb8ddf9e6537907e53fa2 /app/cwm/xutil.c
parent6607b5d582214cfff74e2f83b584112c17932cd6 (diff)
replace with memset
Diffstat (limited to 'app/cwm/xutil.c')
-rw-r--r--app/cwm/xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c
index 6b07c0414..2f8c51df5 100644
--- a/app/cwm/xutil.c
+++ b/app/cwm/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.81 2013/12/16 19:02:17 okan Exp $
+ * $OpenBSD: xutil.c,v 1.82 2013/12/17 16:10:43 okan Exp $
*/
#include <sys/param.h>
@@ -311,7 +311,7 @@ xu_ewmh_get_net_wm_state(struct client_ctx *cc, int *n)
return (NULL);
state = xcalloc(*n, sizeof(Atom));
- memcpy(state, p, *n * sizeof(Atom));
+ (void)memcpy(state, p, *n * sizeof(Atom));
XFree((char *)p);
return (state);