Replace hardcoded length of "/dev/" with strlen(_PATH_DEV).
Pointed out by: bde
This commit is contained in:
parent
9ee40678bb
commit
0adcbd83f1
@ -104,7 +104,7 @@ main(argc, argv)
|
||||
break;
|
||||
case 3:
|
||||
if (!strncmp(argv[2], _PATH_DEV, strlen(_PATH_DEV)))
|
||||
argv[2] += 5;
|
||||
argv[2] += strlen(_PATH_DEV);
|
||||
if (utmp_chk(argv[1], argv[2])) {
|
||||
(void)fprintf(stderr,
|
||||
"write: %s is not logged in on %s.\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user