diff --git a/tool/build/lib/pty.c b/tool/build/lib/pty.c index 264bb0ecc..32d63cccc 100644 --- a/tool/build/lib/pty.c +++ b/tool/build/lib/pty.c @@ -641,15 +641,18 @@ static void PtyDeleteLines(struct Pty *pty) { } static void PtyReportDeviceStatus(struct Pty *pty) { - PtyWriteInput(pty, "\e[0n", 4); + static const char report[] = "\e[0n"; + PtyWriteInput(pty, report, strlen(report)); } static void PtyReportPreferredVtType(struct Pty *pty) { - PtyWriteInput(pty, "\e[?1;0c", 4); + static const char report[] = "\e[?1;0c"; + PtyWriteInput(pty, report, strlen(report)); } static void PtyReportPreferredVtIdentity(struct Pty *pty) { - PtyWriteInput(pty, "\e/Z", 4); + static const char report[] = "\e/Z"; + PtyWriteInput(pty, report, strlen(report)); } static void PtyBell(struct Pty *pty) {