HomeFreeBSD

top(1): increase size of 'status' buffer

Description

top(1): increase size of 'status' buffer

This corrects a warning issues by gcc9:
/srv/src/freebsd/head/usr.bin/top/machine.c:988:22: warning: '%5zu'
directive writing between 5 and 20 bytes into a
region of size 15 [-Wformat-overflow=]

sprintf(status, "?%5zu", state);

Details

Provenance
eadlerAuthored on
Parents
rS334024: sx: port over writer starvation prevention measures from rwlock
Branches
Unknown
Tags
Unknown