resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
512 stars 51 forks source link

Simplify getPathOfStdout() #232

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

let the caller duplicate it if needed, allows for passing the return value straight to optionsParseFileName()

also since STDOUT_FILENO is defined to be 1 there was no need to call snprintf().


Includes the mem leak fix from #229

N-R-K commented 1 year ago

I'll give this a day or two before merging, giving anyone else who might be interested a chance to comment/review.