aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-01 19:39:14 +0200
committerMarvin Borner2021-04-01 19:39:14 +0200
commitafa00abb2b68205bee539d7947130d6b1b1ec6e9 (patch)
tree3a821a75af6c4d4ff1bd4128c4859d77abf87e66 /apps/wm.c
parent4c168fb34c15a1b8981abef7ccef1542a6fb05ca (diff)
Hardened entire system
By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf.
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/wm.c b/apps/wm.c
index 8bbe28c..bc58793 100644
--- a/apps/wm.c
+++ b/apps/wm.c
@@ -388,7 +388,7 @@ static void handle_message_redraw_window(struct message_redraw_window *msg)
struct window *win = window_find(id);
if (!win || win->client.pid != msg->header.src) {
if (msg->header.state == MSG_NEED_ANSWER)
- msg_send(msg->header.src, GUI_REDRAW_WINDOW | MSG_FAILURE, NULL,
+ msg_send(msg->header.src, GUI_REDRAW_WINDOW | MSG_FAILURE, msg,
sizeof(msg->header));
return;
}
@@ -406,7 +406,7 @@ static void handle_message_destroy_window(struct message_destroy_window *msg)
struct window *win = window_find(id);
if (!win || win->client.pid != msg->header.src) {
if (msg->header.state == MSG_NEED_ANSWER)
- msg_send(msg->header.src, GUI_DESTROY_WINDOW | MSG_FAILURE, NULL,
+ msg_send(msg->header.src, GUI_DESTROY_WINDOW | MSG_FAILURE, msg,
sizeof(msg->header));
return;
}