summaryrefslogtreecommitdiffstats
path: root/minelf/Retouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'minelf/Retouch.c')
-rw-r--r--minelf/Retouch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minelf/Retouch.c b/minelf/Retouch.c
index 33809cd6d..a25380b34 100644
--- a/minelf/Retouch.c
+++ b/minelf/Retouch.c
@@ -345,7 +345,7 @@ bool retouch_one_library(const char *binary_name,
success = false;
goto out;
}
- if (SaveFileContents(CACHE_TEMP_SOURCE, file) < 0) {
+ if (SaveFileContents(CACHE_TEMP_SOURCE, &file) < 0) {
printf("Failed to back up source file.\n");
success = false;
goto out;
@@ -357,7 +357,7 @@ bool retouch_one_library(const char *binary_name,
printf("(now %ld bytes free for target)\n", (long)free_space);
}
- result = SaveFileContents(binary_name_atomic, file);
+ result = SaveFileContents(binary_name_atomic, &file);
if (result != 0) {
// Maybe the filesystem was optimistic: retry.
enough_space = false;