+2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
+
+ * libmisc/rlogin.c: Replace atoi() by getulong().
+
2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.c: Replace HAVE_UTMPX_H by USE_UTMPX.
struct passwd *pwd;
char remote_name[32];
char *cp;
- int remote_speed = 9600;
+ unsigned long remote_speed = 9600;
int speed_name = B9600;
int i;
TERMIO termio;
*cp = '\0';
cp++;
- remote_speed = atoi (cp);
- if (0 == remote_speed) {
+ if (getulong (cp, &remote_speed) == 0) {
remote_speed = 9600;
}
}