resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
495 stars 49 forks source link

imPrintf: avoid hostname truncation #251

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

this dynamically allocates a buffer for hostname if the local buf isn't big enough.

also change the buf size from 20 to 256 (which is HOST_NAME_MAX + 1) for most systems.

N-R-K commented 1 year ago

Marking this as draft as the fix in #250 seems like a better solution.

N-R-K commented 1 year ago

Closed due to #250