mirror of
https://github.com/swaywm/sway.git
synced 2026-04-09 08:21:26 -04:00
Fix snprintf compiler warning
This commit is contained in:
parent
9a6687ee04
commit
ac7892371c
2 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ struct cmd_results *output_cmd_background(int argc, char **argv) {
|
|||
"Unable to allocate resources");
|
||||
}
|
||||
|
||||
sprintf(src, "%s/%s", conf_path, rel_path);
|
||||
snprintf(src, strlen(conf_path) + strlen(src) + 2, "%s/%s", conf_path, rel_path);
|
||||
free(rel_path);
|
||||
free(conf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue