summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-02 14:33:12 +0100
committerJim Meyering <jim@meyering.net>2007-03-02 14:33:12 +0100
commitc872a5f7bb33cccb1f9c031a86bc7d1425e2a655 (patch)
tree73e51305003c5830bf74b634fb2e24f8d39f09f4 /lib
parentfe4f1227a50c7a1c95768fc608a502fa6a00b300 (diff)
downloadcoreutils-c872a5f7bb33cccb1f9c031a86bc7d1425e2a655.tar.xz
* vasnprintf.c (VASNPRINTF): Remove cast of alloca return value.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/vasnprintf.c2
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