Make c99 happy

This commit is contained in:
Oleksii Shevchuk 2017-04-04 22:16:45 +03:00
parent e5d315d2bb
commit a9142e884b
1 changed files with 3 additions and 1 deletions

View File

@ -352,9 +352,11 @@ void *memdlopen(const char *soname, const char *buffer, size_t size) {
#ifndef NO_MEMFD_DLOPEN_WORKAROUND
if (is_memfd) {
int i;
char fake_path[PATH_MAX] = {};
snprintf(fake_path, sizeof(fake_path), "/dev/shm/memfd:%s", soname);
for (int i=16; fake_path[i]; i++)
for (i=16; fake_path[i]; i++)
if (fake_path[i] == '/')
fake_path[i] = '!';