diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-01-10 12:33:22 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-01-10 12:33:22 +0100 |
commit | 05f7048580dcd74c8d1145fc207372cce36d991b (patch) | |
tree | 32f87867bf951d8cfeb778a51aacad9f4885f112 /src/local.c | |
parent | 75ea4bfbd8218a11370f72ececa864b09eb1c2a3 (diff) | |
download | 0xFFFF-05f7048580dcd74c8d1145fc207372cce36d991b.tar.bz2 |
local: Call nanddump without -i param
Param -i was removed in recent versions of mtd-utils.
And in older versions it did nothing.
Diffstat (limited to 'src/local.c')
-rw-r--r-- | src/local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/local.c b/src/local.c index 71d6d9d..3b2b1cd 100644 --- a/src/local.c +++ b/src/local.c @@ -227,13 +227,13 @@ static int local_nanddump(const char * file, int mtd, int offset, int length) { return 1; } - size = snprintf(NULL, 0, "nanddump -i -o -b -s %d -l %d -f %s /dev/mtd%dro", offset, length, file, mtd); + size = snprintf(NULL, 0, "nanddump -o -b -s %d -l %d -f %s /dev/mtd%dro", offset, length, file, mtd); command = malloc(size+1); if ( ! command ) return 1; - snprintf(command, size+1, "nanddump -i -o -b -s %d -l %d -f %s /dev/mtd%dro", offset, length, file, mtd); + snprintf(command, size+1, "nanddump -o -b -s %d -l %d -f %s /dev/mtd%dro", offset, length, file, mtd); ret = system(command); |