aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swaybar/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index 46565202..bf1d0f43 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -20,7 +20,7 @@ void ipc_send_workspace_command(struct swaybar *bar, const char *ws) {
}
}
- char *command = malloc(size) + 1;
+ char *command = malloc(size + 1);
if (!command) {
return;
}