mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 11:20:10 +00:00
Update.
2001-06-06 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/wordexp.c: Undo last patch. Use strndupa instead. * po/sk.po: Update from translation team.
This commit is contained in:
parent
f72bdecfab
commit
344af000e1
@ -1,3 +1,9 @@
|
||||
2001-06-06 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/generic/wordexp.c: Undo last patch. Use strndupa instead.
|
||||
|
||||
* po/sk.po: Update from translation team.
|
||||
|
||||
2001-06-05 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Recognize
|
||||
|
@ -346,7 +346,7 @@ parse_tilde (char **word, size_t *word_length, size_t *max_length,
|
||||
else
|
||||
{
|
||||
/* Look up user name in database to get home directory */
|
||||
char *user = __strndup (&words[1 + *offset], i - (1 + *offset));
|
||||
char *user = strndupa (&words[1 + *offset], i - (1 + *offset));
|
||||
struct passwd pwd, *tpwd;
|
||||
int buflen = 1000;
|
||||
char* buffer = __alloca (buflen);
|
||||
@ -370,7 +370,6 @@ parse_tilde (char **word, size_t *word_length, size_t *max_length,
|
||||
}
|
||||
|
||||
*offset = i - 1;
|
||||
free (user);
|
||||
}
|
||||
return *word ? 0 : WRDE_NOSPACE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user