Patch from Eric Norum <eric@cls.usask.ca> to corrent a miscount in length

that results in an error in parsing network unit names/numbers.
This commit is contained in:
Joel Sherrill
1999-04-27 17:31:39 +00:00
parent 9ae3b06edc
commit cfcb5a299a
4 changed files with 4 additions and 4 deletions

View File

@@ -900,7 +900,7 @@ rtems_bsdnet_parse_driver_name (const struct rtems_bsdnet_ifconfig *config, char
}
while ((c = *cp++) != '\0') {
if ((c >= '0') && (c <= '9')) {
int len = cp - config->name - 1;
int len = cp - config->name;
if ((len < 2) || (len > 50))
break;
for (;;) {

View File

@@ -900,7 +900,7 @@ rtems_bsdnet_parse_driver_name (const struct rtems_bsdnet_ifconfig *config, char
}
while ((c = *cp++) != '\0') {
if ((c >= '0') && (c <= '9')) {
int len = cp - config->name - 1;
int len = cp - config->name;
if ((len < 2) || (len > 50))
break;
for (;;) {

View File

@@ -900,7 +900,7 @@ rtems_bsdnet_parse_driver_name (const struct rtems_bsdnet_ifconfig *config, char
}
while ((c = *cp++) != '\0') {
if ((c >= '0') && (c <= '9')) {
int len = cp - config->name - 1;
int len = cp - config->name;
if ((len < 2) || (len > 50))
break;
for (;;) {