HomeFreeBSD

resizewin: Stop printing bogus NUL to TTY

Description

resizewin: Stop printing bogus NUL to TTY

A char array has an implicit NUL terminating it, which sizeof will
include, so we need to subtract 1 here. Printing a NUL can cause issues
for things like CI environments that aren't expecting it, especially
with recent Jenkins being stricter about not putting NUL in XML files.

Fixes: 3d222369acbe ("Add a small tool, resizewin(1), to query terminal for window size")
MFC after: 1 week

Details

Provenance
jrtc27Authored on Jun 14 2023, 10:58 PM
Parents
rG6eb2dbfa63e8: tcp: add missing static keywords
Branches
Unknown
Tags
Unknown