about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/lddlibc4.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/lddlibc4.c')
-rw-r--r--sysdeps/unix/sysv/linux/lddlibc4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/lddlibc4.c b/sysdeps/unix/sysv/linux/lddlibc4.c
index 7c00d05d43..ae6e611859 100644
--- a/sysdeps/unix/sysv/linux/lddlibc4.c
+++ b/sysdeps/unix/sysv/linux/lddlibc4.c
@@ -75,11 +75,11 @@ main (int argc, char *argv[])
   /* We don't need the file open anymore.  */
   fclose (fp);
 
-  /* We must put `__LDD=ARGV0=<program-name>' in the environment.  */
+  /* We must put `__LDD_ARGV0=<program-name>' in the environment.  */
   filename_len = strlen (filename);
   buf = (char *) alloca (sizeof "__LDD_ARGV0=" + filename_len);
   mempcpy (mempcpy (buf, "__LDD_ARGV0=", sizeof "__LDD_ARGV0=" - 1),
-	   filename, filename_len);
+	   filename, filename_len + 1);
   /* ...and put the value in the environment.  */
   putenv (buf);