mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
...
This commit is contained in:
parent
18dde7b26c
commit
7119c04c81
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ static inline const char*
|
|||
repr_csi_params(unsigned int *params, unsigned int num_params) {
|
||||
if (!num_params) return "";
|
||||
static char buf[256];
|
||||
int pos = 0;
|
||||
unsigned int pos = 0;
|
||||
while (pos < 200 && num_params && sizeof(buf) > pos + 1) {
|
||||
const char *fmt = num_params > 1 ? "%u " : "%u";
|
||||
int ret = snprintf(buf + pos, sizeof(buf) - pos - 1, fmt, params[num_params--]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue