replace with memset

This commit is contained in:
okan
2013-12-17 16:10:43 +00:00
parent 19fc7f666b
commit da2bea3ffa
4 changed files with 5 additions and 5 deletions

View File

@@ -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);