ref: 07b6c8994b89abfa423d139d2d3d353a47db88c1
parent: 7e77d6f2279708fd26317673007cdab18299a532
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Feb 14 12:32:30 EST 2018
[ar] Fix closetmp() Write to the correct file pointer.
--- a/ar/main.c
+++ b/ar/main.c
@@ -424,7 +424,7 @@
}
rewind(tmp);
while ((c = getc(tmp)) != EOF)
- fputc(c, tmp);
+ fputc(c, fp);
fflush(fp);
if (ferror(fp) || ferror(tmp)) {
perror("ar:copying from temporary");