aboutsummaryrefslogtreecommitdiffstats
path: root/get_stack_space.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-22 11:22:38 +0200
committerMattias Andrée <maandree@kth.se>2024-09-22 11:22:38 +0200
commitf02bdf3ceaf245982728722a2c3eced750c511a1 (patch)
tree466996a7eb7ce8d8a349fe3b2334d13df692e5b0 /get_stack_space.c
parentm whitespace (diff)
downloadlibsimple-1.7.tar.gz
libsimple-1.7.tar.bz2
libsimple-1.7.tar.xz
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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;