summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-21 19:12:03 +0000
committerRoland McGrath <roland@gnu.org>2002-06-21 19:12:03 +0000
commit22e8fe17966c0a9bfcabc5339af4d2f87672ef01 (patch)
treec2f05832eb092311204fecdd28669237df28b3bf /trans
parent1a5e4799205b4c64a1fb1c5f4cf5a1a788fe8f9e (diff)
2002-06-21 Roland McGrath <roland@frob.com>
* streamio.c (parse_opt): Fix fencepost error in -n arg parsing. Reported by Nicola Girardi <nicola@g-n-u.de>.
Diffstat (limited to 'trans')
-rw-r--r--trans/streamio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/streamio.c b/trans/streamio.c
index 645f5861..0faa8a3e 100644
--- a/trans/streamio.c
+++ b/trans/streamio.c
@@ -234,7 +234,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
if (*end == ',')
/* MAJOR,MINOR form */
{
- start = end;
+ start = end + 1;
rdev = (rdev << 8) + strtoul (start, &end, 0);
}