diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/find_pid_by_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c index 966595ddb..24084a34f 100644 --- a/libbb/find_pid_by_name.c +++ b/libbb/find_pid_by_name.c @@ -45,7 +45,7 @@ extern long* find_pid_by_name( const char* pidName) extern long *pidlist_reverse(long *pidList) { int i=0; - while (pidList[i] > 0 && i++); + while (pidList[i] > 0 && ++i); if ( i-- > 0) { long k; int j; |