summaryrefslogtreecommitdiffstats
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/ipc.c')
-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) {
20 } 20 }
21 } 21 }
22 22
23 char *command = malloc(size) + 1; 23 char *command = malloc(size + 1);
24 if (!command) { 24 if (!command) {
25 return; 25 return;
26 } 26 }