fix: vsnprintf instead of snprintf in notify()
This commit is contained in:
parent
3af76b3c34
commit
9724383228
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -43,7 +43,7 @@ notify(const char *fmt, ...)
|
|||
int cmd_size = strlen(cmd)-1;
|
||||
|
||||
va_start(ap, fmt);
|
||||
snprintf(cmd+cmd_size, 1024-cmd_size, fmt, ap);
|
||||
vsnprintf(cmd+cmd_size, 1024-cmd_size, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
system(cmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue