diff options
Diffstat (limited to 'libpthread/nptl/sem_open.c')
-rw-r--r-- | libpthread/nptl/sem_open.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/nptl/sem_open.c b/libpthread/nptl/sem_open.c index 8ded82cf1..28dd3aa90 100644 --- a/libpthread/nptl/sem_open.c +++ b/libpthread/nptl/sem_open.c @@ -333,7 +333,8 @@ sem_open (const char *name, int oflag, ...) sizeof (sem_t) - sizeof (struct new_sem)); tmpfname = (char *) alloca (mountpoint.dirlen + 6 + 1); - mempcpy (tmpfname, mountpoint.dir, mountpoint.dirlen); + mempcpy (mempcpy (tmpfname, mountpoint.dir, mountpoint.dirlen), + "XXXXXX", 7); fd = __gen_tempname (tmpfname, __GT_FILE, mode); if (fd == -1) |