]> sourceware.org Git - glibc.git/commitdiff
(parse_tilde): Fix use of extend_alloca.
authorUlrich Drepper <drepper@redhat.com>
Tue, 2 Sep 2003 09:36:53 +0000 (09:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 2 Sep 2003 09:36:53 +0000 (09:36 +0000)
sysdeps/generic/wordexp.c

index ae9fabb9b1351ba0d1ab51d1f47c0210b55106d0..46292f07fdb422a83efa4ff8d9348c703c3265f6 100644 (file)
@@ -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);
This page took 0.045262 seconds and 5 git commands to generate.