aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-11-10 14:06:06 +0000
committerAndreas Jaeger <aj@suse.de>2000-11-10 14:06:06 +0000
commit7c545dbe46898de7207aefba6148a64209ee443c (patch)
tree9d976c0cc23b28702fbbb3b1175265431aa8ead0
parentcff7dc3a34c68611b3827ad308f5938a07c74dd9 (diff)
downloadglibc-7c545dbe46898de7207aefba6148a64209ee443c.tar
glibc-7c545dbe46898de7207aefba6148a64209ee443c.tar.gz
glibc-7c545dbe46898de7207aefba6148a64209ee443c.tar.bz2
glibc-7c545dbe46898de7207aefba6148a64209ee443c.zip
(create_links): Fix alloca calculation. Patch by Ben Collins <bcollins@debian.org>.
-rw-r--r--elf/ldconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 2e8746e75c..8b6a3d478d 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -370,13 +370,13 @@ create_links (const char *real_path, const char *path, const char *libname,
/* Get complete path. */
full_libname = alloca (strlen (path) + strlen (libname) + 2);
- full_soname = alloca (strlen (path) + strlen (libname) + 2);
+ full_soname = alloca (strlen (path) + strlen (soname) + 2);
sprintf (full_libname, "%s/%s", path, libname);
sprintf (full_soname, "%s/%s", path, soname);
if (opt_chroot)
{
real_full_libname = alloca (strlen (real_path) + strlen (libname) + 2);
- real_full_soname = alloca (strlen (real_path) + strlen (libname) + 2);
+ real_full_soname = alloca (strlen (real_path) + strlen (soname) + 2);
sprintf (real_full_libname, "%s/%s", real_path, libname);
sprintf (real_full_soname, "%s/%s", real_path, soname);
}