about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-02 09:36:53 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-02 09:36:53 +0000
commitfd2f9ee3091f4da05c0bc000183c992dd9a85f6c (patch)
tree2200201c254a8c23584d5506fc973dfb2f895f5e /sysdeps/generic
parent1db52d14c7e9e8803d914dc0f18a968203e682ac (diff)
downloadglibc-fd2f9ee3091f4da05c0bc000183c992dd9a85f6c.tar.gz
glibc-fd2f9ee3091f4da05c0bc000183c992dd9a85f6c.tar.xz
glibc-fd2f9ee3091f4da05c0bc000183c992dd9a85f6c.zip
(parse_tilde): Fix use of extend_alloca.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/wordexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/wordexp.c b/sysdeps/generic/wordexp.c
index ae9fabb9b1..46292f07fd 100644
--- a/sysdeps/generic/wordexp.c
+++ b/sysdeps/generic/wordexp.c
@@ -329,7 +329,7 @@ parse_tilde (char **word, size_t *word_length, size_t *max_length,
 
 	  while ((result = __getpwuid_r (uid, &pwd, buffer, buflen, &tpwd)) != 0
 		 && errno == ERANGE)
-	    extend_alloca (buffer, buflen, buflen + 1000);
+	    buffer = extend_alloca (buffer, buflen, buflen + 1000);
 
 	  if (result == 0 && tpwd != NULL && pwd.pw_dir != NULL)
 	    {
@@ -356,7 +356,7 @@ parse_tilde (char **word, size_t *word_length, size_t *max_length,
 
       while ((result = __getpwnam_r (user, &pwd, buffer, buflen, &tpwd)) != 0
 	     && errno == ERANGE)
-	extend_alloca (buffer, buflen, buflen + 1000);
+	buffer = extend_alloca (buffer, buflen, buflen + 1000);
 
       if (result == 0 && tpwd != NULL && pwd.pw_dir)
 	*word = w_addstr (*word, word_length, max_length, pwd.pw_dir);