summaryrefslogtreecommitdiff
path: root/storeio
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-22 21:13:26 +0000
committerRoland McGrath <roland@gnu.org>2002-06-22 21:13:26 +0000
commit8c12210373e5ccc7b8df72a99a088140003a4fd4 (patch)
tree1d11d7c787b02d7177c8ad213cac8fee0ffefac9 /storeio
parentb3fd3abce214930fbc813d726cb46637e528a59b (diff)
2002-06-22 Roland McGrath <roland@frob.com>
* storeio.c (parse_opt): Fix fencepost error in -n arg parsing. Reported by Nicola Girardi <nicola@g-n-u.de>.
Diffstat (limited to 'storeio')
-rw-r--r--storeio/storeio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storeio/storeio.c b/storeio/storeio.c
index 6dffb716..a6470fcb 100644
--- a/storeio/storeio.c
+++ b/storeio/storeio.c
@@ -1,6 +1,6 @@
/* A translator for doing I/O to stores
- Copyright (C) 1995,96,97,98,99,2000,01 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2000,01,02 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
@@ -81,7 +81,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
if (*end == ',')
/* MAJOR,MINOR form */
{
- start = end;
+ start = end + 1;
rdev = makedev (rdev, strtoul (start, &end, 0));
}