diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/dl-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c index 656fea8308..798bf06e54 100644 --- a/sysdeps/generic/dl-cache.c +++ b/sysdeps/generic/dl-cache.c @@ -183,7 +183,7 @@ _dl_load_cache_lookup (const char *name) cache_new = (void *) -1; } else if (file != NULL && cachesize > sizeof *cache_new - && memcmp (cache_new->magic, CACHEMAGIC_VERSION_NEW, + && memcmp (file, CACHEMAGIC_VERSION_NEW, sizeof CACHEMAGIC_VERSION_NEW - 1) == 0) { cache_new = file; |