summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 0c269de..a85e523 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -147,8 +147,8 @@ static FILE *dbf;
static int bcode(const char *s)
{
int r;
- unsigned value;
- if (safe_strtou((char *)s, &value)) {
+ unsigned value = bb_strtou(s, NULL, 10);
+ if (errno) {
return -1;
}
r = tty_value_to_baud(value);