diff options
Diffstat (limited to '')
-rw-r--r-- | bsd_eth_drivers/libbsdport/devicet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd_eth_drivers/libbsdport/devicet.c b/bsd_eth_drivers/libbsdport/devicet.c index fde3975..923918f 100644 --- a/bsd_eth_drivers/libbsdport/devicet.c +++ b/bsd_eth_drivers/libbsdport/devicet.c @@ -145,7 +145,7 @@ get_name_unit(const char *drvnam, char *nm, int *punit) int l = strlen(drvnam); int i; if ( l > 0 ) { - for ( i=l-1; i>=0 && isdigit(drvnam[i]); i-- ) + for ( i=l-1; i>=0 && isdigit(((unsigned char)drvnam[i])); i-- ) /* nothing else to do */; if ( 1 != sscanf(drvnam+i,"%d",punit) ) *punit = 0; /* wildcard */ |