From 9eecb5e8f3903a6fe66ac88f9218935130e77042 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Mar 1998 09:01:59 +0000 Subject: Update. 1998-03-18 Ulrich Drepper * sysdeps/unix/opendir.c (__opendir): Don't block on FIFOs etc. Optimize memmory handling. * sysdeps/unix/closedir.c: Optmize memory handling. --- posix/wordexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posix') 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; } } -- cgit v1.2.3