diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 21:29:10 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-10-22 21:29:10 +0200 |
commit | 94f40db019e23790726ee678d5d5d4c68b77ceb2 (patch) | |
tree | 5b8f3daf06e3ff6d8b96b08f168cf9ebf4476503 /newlib | |
parent | db8bda4b47d98bc40c8f582a96d72ebad6141629 (diff) | |
download | cygnal-94f40db019e23790726ee678d5d5d4c68b77ceb2.tar.gz cygnal-94f40db019e23790726ee678d5d5d4c68b77ceb2.tar.bz2 cygnal-94f40db019e23790726ee678d5d5d4c68b77ceb2.zip |
get_alt_digits: Fix typo in allocation
adi->digit is an array of CHAR *, not of CHAR **.
Fixes Coverity CID 60043
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/time/strftime.c | 2 |
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); |