[PATCH 02/15 RESEND] libext2fs: fix dubious code in ext2fs_numeric_progress_init()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Namhyung Kim
Date: Monday, November 29, 2010 - 1:55 am

Looks like a copy & paste problem to me.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 lib/ext2fs/progress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/ext2fs/progress.c b/lib/ext2fs/progress.c
index 5ad2a45..ec4f553 100644
--- a/lib/ext2fs/progress.c
+++ b/lib/ext2fs/progress.c
@@ -40,7 +40,7 @@ void ext2fs_numeric_progress_init(ext2_filsys fs,
 	memset(spaces, ' ', sizeof(spaces)-1);
 	spaces[sizeof(spaces)-1] = 0;
 	memset(backspaces, '\b', sizeof(backspaces)-1);
-	spaces[sizeof(backspaces)-1] = 0;
+	backspaces[sizeof(backspaces)-1] = 0;
 	progress->skip_progress = 0;
 	if (getenv("E2FSPROGS_SKIP_PROGRESS"))
 		progress->skip_progress++;
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/15] e2fsprogs cleanups, Namhyung Kim, (Mon Nov 29, 1:55 am)
[PATCH 02/15 RESEND] libext2fs: fix dubious code in ext2fs ..., Namhyung Kim, (Mon Nov 29, 1:55 am)
[PATCH 08/15] libext2fs: fix memory leak on error path, Namhyung Kim, (Mon Nov 29, 1:55 am)
[PATCH 11/15] mke2fs: fix determination of size_type, Namhyung Kim, (Mon Nov 29, 1:55 am)
[PATCH 12/15] mke2fs: add some error checks into PRS(), Namhyung Kim, (Mon Nov 29, 1:55 am)
[PATCH 15/15] mke2fs.8.in: add ENVIRONMENT section, Namhyung Kim, (Mon Nov 29, 1:55 am)
Re: [PATCH 11/15] mke2fs: fix determination of size_type, Lukas Czerner, (Tue Nov 30, 5:33 am)