[hackers] [ubase] pidof: fix typo, argv[0] -> argv[i] || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 05 Jul 2014 17:27:02 +0200

commit d9aaa0f501c2612d825ea6787e03c34b2badd1fb
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Jul 5 15:47:30 2014 +0000

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

diff --git a/pidof.c b/pidof.c
index c921117..115445b 100644
--- a/pidof.c
+++ b/pidof.c
_AT_@ -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)
Received on Sat Jul 05 2014 - 17:27:02 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 05 2014 - 17:36:09 CEST