aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-05 09:39:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-05 09:39:36 +0000
commit15b12f45c69751014f7a96f089ba32a76f97d4a6 (patch)
tree69db86171691ebf56bc9e4010a666a9161dbec90 /vt.c
parentserver/client: harden reading of initialization data, and make async (diff)
scan-build: fix a couple of minor warnings from a scan-build run
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index 41524857..aa61bcc9 100644
--- a/vt.c
+++ b/vt.c
@@ -581,7 +581,7 @@ esc_as_string(struct terminal *term, uint8_t final)
assert(term->vt.params.idx == 0);
- c += snprintf(&msg[c], sizeof(msg) - c, "%c", final);
+ snprintf(&msg[c], sizeof(msg) - c, "%c", final);
return msg;
}