aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-02-09 16:09:51 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-02-09 16:09:51 -0300
commit7dd416491e080456fc7742d884c520526509413e (patch)
tree93e2bbad87c473eb83eb778e158cb3b27dff1e6a /sysdeps
parente99156816d5033ca9421c80f55c5c8e7fcd5082b (diff)
downloadglibc-7dd416491e080456fc7742d884c520526509413e.zip
glibc-7dd416491e080456fc7742d884c520526509413e.tar.gz
glibc-7dd416491e080456fc7742d884c520526509413e.tar.bz2
linux: Fix __sem_check_add_mapping search_sem
Similar to __sem_check_add_mapping fix, take in consideration the trailling NULL. Checked x86_64-linux-gnu.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/pthread/sem_routines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/sem_routines.c b/sysdeps/pthread/sem_routines.c
index c2c8b54..34e6410 100644
--- a/sysdeps/pthread/sem_routines.c
+++ b/sysdeps/pthread/sem_routines.c
@@ -37,7 +37,7 @@ struct search_sem
ino_t ino;
int refcnt;
sem_t *sem;
- char name[NAME_MAX];
+ char name[NAME_MAX + 1];
};
/* Comparison function for search of existing mapping. */