From 443ce5fef316e3dc324fe84557a06b069dbe33f9 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 11 Jul 2013 20:39:51 -0400 Subject: Use k5calloc instead of k5alloc where appropriate Wherever we use k5alloc with a multiplication in the size parameter,, use the new k5calloc helper function instead. --- src/lib/krb5/os/expand_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/krb5/os/expand_path.c') diff --git a/src/lib/krb5/os/expand_path.c b/src/lib/krb5/os/expand_path.c index 3d23849ba..f14e9acd8 100644 --- a/src/lib/krb5/os/expand_path.c +++ b/src/lib/krb5/os/expand_path.c @@ -477,7 +477,7 @@ k5_expand_path_tokens_extra(krb5_context context, const char *path_in, /* Get extra tokens. */ if (nargs > 0) { - extra_tokens = k5alloc((nargs + 1) * sizeof(char *), &ret); + extra_tokens = k5calloc(nargs + 1, sizeof(char *), &ret); if (extra_tokens == NULL) goto cleanup; va_start(ap, path_out); -- cgit