From 88197030d5805d95d3e71d0aab71f44c6895b3b2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 28 Oct 2007 08:24:07 +0000 Subject: [BZ #5222] 2007-10-28 Ulrich Drepper [BZ #5222] * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short path elements in counting mode. --- elf/dl-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf/dl-load.c') diff --git a/elf/dl-load.c b/elf/dl-load.c index 98d25b827d..94531b271f 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -2274,7 +2274,7 @@ _dl_rtld_di_serinfo (struct link_map *loader, Dl_serinfo *si, bool counting) if (counting) { si->dls_cnt++; - si->dls_size += r->dirnamelen < 2 ? r->dirnamelen : 2; + si->dls_size += MAX (2, r->dirnamelen); } else { -- cgit v1.2.3