diff options
author | Denis Vlasenko | 2007-11-06 03:05:54 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-11-06 03:05:54 +0000 |
commit | 6bef3d1d2216234454875052220ca0f477a820b4 (patch) | |
tree | 717060345370b781d3d1cde7ab4dd29304a066e8 /loginutils | |
parent | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff) | |
download | busybox-6bef3d1d2216234454875052220ca0f477a820b4.zip busybox-6bef3d1d2216234454875052220ca0f477a820b4.tar.gz |
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/getty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index bc735d0..d32d189 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -166,8 +166,10 @@ static void parse_speeds(struct options *op, char *arg) debug("entered parse_speeds\n"); for (cp = strtok(arg, ","); cp != 0; cp = strtok((char *) 0, ",")) { - if ((op->speeds[op->numspeed++] = bcode(cp)) <= 0) + op->speeds[op->numspeed] = bcode(cp); + if (op->speeds[op->numspeed] <= 0) bb_error_msg_and_die("bad speed: %s", cp); + op->numspeed++; if (op->numspeed > MAX_SPEED) bb_error_msg_and_die("too many alternate speeds"); } |