diff options
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 215ef1a8a..d80883729 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -4283,7 +4283,7 @@ static int inject_fault(int nth) if (fd == -1) exitf("failed to open /proc/thread-self/fail-nth"); char buf[16]; - sprintf(buf, "%d", nth + 1); + sprintf(buf, "%d", nth); if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) exitf("failed to write /proc/thread-self/fail-nth"); return fd; |
