mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08: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:
parent
e99156816d
commit
7dd416491e
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user