fix: vsnprintf instead of snprintf in notify()

This commit is contained in:
Arthur Khachaturov 2024-08-01 01:30:24 +03:00
parent 3af76b3c34
commit 9724383228
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55

2
util.c
View file

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