mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Fix format error
This commit is contained in:
parent
baa84a0cd7
commit
7c636da8a3
|
@ -1074,7 +1074,7 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
|
||||||
|
|
||||||
sway_log(L_DEBUG, "Setting background for output %d to %s", output_i, oc->background);
|
sway_log(L_DEBUG, "Setting background for output %d to %s", output_i, oc->background);
|
||||||
|
|
||||||
size_t bufsize = 4;
|
size_t bufsize = 12;
|
||||||
char output_id[bufsize];
|
char output_id[bufsize];
|
||||||
snprintf(output_id, bufsize, "%d", output_i);
|
snprintf(output_id, bufsize, "%d", output_i);
|
||||||
output_id[bufsize-1] = 0;
|
output_id[bufsize-1] = 0;
|
||||||
|
|
Loading…
Reference in a new issue