about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-18 09:01:59 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-18 09:01:59 +0000
commit9eecb5e8f3903a6fe66ac88f9218935130e77042 (patch)
tree67594caa357c4117cf65e55663641086f41b892d /posix
parent488690121208fb26e6f87cdbbf9bf540fa4a7140 (diff)
downloadglibc-9eecb5e8f3903a6fe66ac88f9218935130e77042.tar.gz
glibc-9eecb5e8f3903a6fe66ac88f9218935130e77042.tar.xz
glibc-9eecb5e8f3903a6fe66ac88f9218935130e77042.zip
Update.
1998-03-18  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/opendir.c (__opendir): Don't block on FIFOs etc.
	Optimize memmory handling.
	* sysdeps/unix/closedir.c: Optmize memory handling.
Diffstat (limited to 'posix')
-rw-r--r--posix/wordexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/wordexp.c b/posix/wordexp.c
index 51cdc93df5..1c69af8a1c 100644
--- a/posix/wordexp.c
+++ b/posix/wordexp.c
@@ -1377,7 +1377,7 @@ envsubst:
 	      if (s == NULL)
 		return WRDE_NOSPACE;
 	      *word = memcpy (s, __libc_argv[p], len);
-	      *max_length = *word_length = len;
+	      *max_length = *word_length = len - 1;
 	    }
 	}