From c48763fa9daa3b13bf767f3d49a78bc9203f8338 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 27 May 2010 22:04:44 +0400 Subject: [PATCH] mc_util_write_backup_content(): fixed arguments in fwrite() call. Signed-off-by: Andrew Borodin --- lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.c b/lib/util.c index 704819cd4..a33df4678 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1240,7 +1240,7 @@ mc_util_write_backup_content (const char *from_file_name, const char *to_file_na return FALSE; } - if (fwrite ((const void *) contents, length, 1, backup_fd) != length) + if (fwrite ((const void *) contents, 1, length, backup_fd) != length) ret1 = FALSE; { int ret2;