eta: adjust truncation case
authorSitsofe Wheeler <sitsofe@yahoo.com>
Fri, 22 Dec 2017 11:10:35 +0000 (11:10 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 24 Dec 2017 23:34:39 +0000 (23:34 +0000)
commit38aef42dad8d84cdf9a3fd4efb2db93868377fd3
treeea28988801a23bbb6e8b6766537b32f683106e94
parent2fc703f639f1fac7d1f86917ba8bf4d0e81667b9
eta: adjust truncation case

c076de85fa4901683f6ce23ecdc071c17801ffad ("eta: fix buffer overflow in
ETA output") made adjustments to cope with snprintf truncation. However
since we're replacing the null added by snprintf, left only needs to be
one smaller than the output buffer. Make this change and add a comment
about what we're doing.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
eta.c