aboutsummaryrefslogtreecommitdiffstats
path: root/get_stack_space.c
diff options
context:
space:
mode:
Diffstat (limited to 'get_stack_space.c')
-rw-r--r--get_stack_space.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get_stack_space.c b/get_stack_space.c
index 5e54aac..bb0d92b 100644
--- a/get_stack_space.c
+++ b/get_stack_space.c
@@ -12,7 +12,7 @@ libsimple_get_stack_space(uintptr_t *restrict low, uintptr_t *restrict high)
size_t off = 0;
size_t lineoff, linelen;
- fd = open("/proc/self/maps", O_RDONLY);
+ fd = open("/proc/thread-self/maps", O_RDONLY);
if (fd < 0)
return -1;