]> granicus.if.org Git - psmisc/commitdiff
Fix a regression caused by git commit c4fdae52e4fe6f which reintroduces sf#1948351.
authorWerner Fink <werner@suse.de>
Fri, 15 Oct 2010 08:51:54 +0000 (10:51 +0200)
committerWerner Fink <werner@suse.de>
Fri, 15 Oct 2010 08:51:54 +0000 (10:51 +0200)
src/peekfd.c

index 2c30f25c207e6f5e29aca1ebd456303e46adbee9..6d759b9cda5e949259288f2faeab5a7ec29c3809 100644 (file)
@@ -199,7 +199,7 @@ int main(int argc, char **argv)
       numfds = argc - optind;
       fds = malloc(sizeof(int) * numfds);
          for (i = 0; i < numfds; i++)
-               fds[i] = atoi(argv[optind + i + 1]);
+               fds[i] = atoi(argv[optind + i]);
     }
 
        attach(target_pid);