scan-build: fix a couple of minor warnings from a scan-build run

This commit is contained in:
Daniel Eklöf 2019-11-05 10:39:36 +01:00
parent 9abc5ca971
commit 15b12f45c6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 7 additions and 5 deletions

4
csi.c
View file

@ -54,8 +54,8 @@ csi_as_string(struct terminal *term, uint8_t final)
i == term->vt.params.idx - 1 ? "" : ";");
}
c += snprintf(&msg[c], sizeof(msg) - c, "%c (%zu parameters)",
final, term->vt.params.idx);
snprintf(&msg[c], sizeof(msg) - c, "%c (%zu parameters)",
final, term->vt.params.idx);
return msg;
}