pidof: fix typo, argv[0] -> argv[i]

This commit is contained in:
Hiltjo Posthuma 2014-07-05 15:47:30 +00:00 committed by sin
parent 2557104494
commit d9aaa0f501

View File

@ -95,7 +95,7 @@ main(int argc, char *argv[])
cmd++;
for (i = 0; i < argc; i++) {
if (strcmp(cmd, argv[i]) == 0 ||
strcmp(cmdbase, argv[0]) == 0) {
strcmp(cmdbase, argv[i]) == 0) {
putword(entry->d_name);
found++;
if (sflag)