Call strlen() once instead of twice.

This commit is contained in:
brian 2001-04-14 21:33:58 +00:00
parent 6da31e65f8
commit 16b3606e12

View File

@ -374,9 +374,9 @@ dev_stdclone(char *name, char **namep, char *stem, int *unit)
{
int u, i;
if (bcmp(stem, name, strlen(stem)) != 0)
return (0);
i = strlen(stem);
if (bcmp(stem, name, i) != 0)
return (0);
if (!isdigit(name[i]))
return (0);
u = 0;