summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/libc/time/strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c
index f11a00242..382318047 100644
--- a/newlib/libc/time/strftime.c
+++ b/newlib/libc/time/strftime.c
@@ -608,7 +608,7 @@ get_alt_digits (const char *alt_digits)
++adi->num;
/* Allocate the `digit' array, which is an array of `num' pointers into
`buffer'. */
- adi->digit = (CHAR **) calloc (adi->num, sizeof (CHAR **));
+ adi->digit = (CHAR **) calloc (adi->num, sizeof (CHAR *));
if (!adi->digit)
{
free (adi);