[RFC PATCH 2/4] Fix ns_id_size

Ákos Uzonyi uzonyi.akos at gmail.com
Thu Aug 13 15:32:40 UTC 2020


---
 pidns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pidns.c b/pidns.c
index edab73f8..9d8695da 100644
--- a/pidns.c
+++ b/pidns.c
@@ -65,7 +65,7 @@ static const struct {
  */
 #define MAX_NS_DEPTH 32
 
-static const size_t ns_id_size = sizeof(unsigned int);
+static const size_t ns_id_size = sizeof(unsigned int) * 8;
 static const uint8_t ptr_sz_lg = (sizeof(void *) == 8 ? 6 : 5);
 
 static int pid_max;
-- 
2.28.0



More information about the Strace-devel mailing list