X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fsyscall-list.c;h=b608e8582f43a3a7717a4969b587734d4335bddf;hb=d2f1f23ad2636cf05589a67b5229c7fd604bc21f;hp=05fad3e1588228b19400323d67ec9a4fe31863d2;hpb=8351ceaea9480d9c2979aa2ff0f4982cfdfef58d;p=elogind.git diff --git a/src/core/syscall-list.c b/src/core/syscall-list.c index 05fad3e15..b608e8582 100644 --- a/src/core/syscall-list.c +++ b/src/core/syscall-list.c @@ -32,6 +32,7 @@ const struct syscall_name *lookup_syscall(register const char *str, register uns #include "syscall-from-name.h" const char *syscall_to_name(int id) { + id = SYSCALL_TO_INDEX(id); if (id < 0 || id >= (int) ELEMENTSOF(syscall_names)) return NULL;