e9c9399aaf
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=f272edd9b07cbee347188bf8da3c37ec
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);
|