1
0
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:
Adhemerval Zanella
2021-02-09 16:09:51 -03:00
parent e99156816d
commit 7dd416491e

View File

@@ -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. */