mtd/util nanddump.c,1.23,1.24
Artem Bityuckiy
dedekind at infradead.org
Thu Dec 2 13:58:56 EST 2004
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv26479
Modified Files:
nanddump.c
Log Message:
Bugfix: don't use arg index since there is no '\0' terminator.
Index: nanddump.c
===================================================================
RCS file: /home/cvs/mtd/util/nanddump.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- nanddump.c 2 Dec 2004 17:23:50 -0000 1.23
+++ nanddump.c 2 Dec 2004 18:58:53 -0000 1.24
@@ -112,7 +112,10 @@
start_addr = atol(optarg);
break;
case 'f':
- dumpfile = argv[optind];
+ if (!(dumpfile = strdup(optarg))) {
+ perror("stddup");
+ exit(1);
+ }
break;
case 'i':
ignoreerrors = 1;
More information about the linux-mtd-cvs
mailing list