diff options
Diffstat (limited to 'sysdeps/pthread/sem_routines.c')
-rw-r--r-- | sysdeps/pthread/sem_routines.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/pthread/sem_routines.c b/sysdeps/pthread/sem_routines.c index ea7a445324..c2c8b54cd0 100644 --- a/sysdeps/pthread/sem_routines.c +++ b/sysdeps/pthread/sem_routines.c @@ -72,6 +72,7 @@ __sem_check_add_mapping (const char *name, int fd, sem_t *existing) size_t namelen = strlen (name); if (namelen > NAME_MAX) return SEM_FAILED; + namelen += 1; sem_t *result = SEM_FAILED; |