(_dl_rtld_di_serinfo): Correct handling of short path elements in counting mode.
authordrepper <drepper>
Sun, 28 Oct 2007 08:23:50 +0000 (08:23 +0000)
committerdrepper <drepper>
Sun, 28 Oct 2007 08:23:50 +0000 (08:23 +0000)
elf/dl-load.c

index 98d25b8..94531b2 100644 (file)
@@ -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
                {