mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-12 19:04:54 +03:00
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.
This commit is contained in:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user