14 lines
375 B
Diff
14 lines
375 B
Diff
diff --git a/src/peekfd.c b/src/peekfd.c
|
|
index 2c30f25..6d759b9 100644
|
|
--- a/src/peekfd.c
|
|
+++ b/src/peekfd.c
|
|
@@ -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);
|