summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/amdfwtool/amdfwtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 8190b8dc2a..fb371e7487 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -2392,7 +2392,7 @@ int main(int argc, char **argv)
ctx.current - offset : sizeof(*amd_romsig);
uint32_t ret_bytes;
- ret_bytes = write(targetfd, BUFF_OFFSET(ctx, offset), bytes);
+ ret_bytes = write_from_buf_to_file(targetfd, BUFF_OFFSET(ctx, offset), bytes);
if (bytes != ret_bytes) {
fprintf(stderr, "Error: Writing to file %s failed\n", output);
retval = 1;