Util: Rewrite error message generation to avoid potential problem
commitd4cc033379c93d09e5722a935bbf8e6b85d9f999
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 4 Sep 2021 17:05:25 +0000 (4 19:05 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 4 Sep 2021 18:03:53 +0000 (4 19:03 +0100)
tree47600402d382299e9f259af0eabdf3a367151d6e
parent308b9f4975e04e7c272035c90ad03294b7da0729
Util: Rewrite error message generation to avoid potential problem

The call to 'snprintf' may change the value of 'errno', which means that
the 'perror' call would print a wrong error message, not the one from
'fopen'.
util/wxcopy.c