diff options
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/vasnprintf.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 021190ec8..391e6b170 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2007-03-02 Jim Meyering <jim@meyering.net> + + * vasnprintf.c (VASNPRINTF): Remove cast of alloca return value. + 2007-03-01 Jim Meyering <jim@meyering.net> Merge in changes from gnulib: diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index d19f7125c..567a67457 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -146,7 +146,7 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (CHAR_T)) { - buf = (CHAR_T *) alloca (buf_neededlength * sizeof (CHAR_T)); + buf = alloca (buf_neededlength * sizeof (CHAR_T)); buf_malloced = NULL; } else |