From bd6e61c6c894fe8851f94bfff9324f92df6c6f06 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 26 Jul 2012 07:11:43 +0000 Subject: [PATCH] also no need for calloc here SVN revision: 74418 --- src/bin/e_font.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/e_font.c b/src/bin/e_font.c index 67d2244b1..f6eb196e4 100644 --- a/src/bin/e_font.c +++ b/src/bin/e_font.c @@ -172,7 +172,7 @@ _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, con int len, len2; len = s1 - font; - name = calloc(sizeof(char), len + 1); + name = malloc(sizeof(char) * (len + 1)); strncpy(name, font, len); /* Get subname (should be english) */ @@ -182,7 +182,7 @@ _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, con len2 = s2 - name; if (len2 > len) { - s2 = realloc(name, sizeof(char) * len2 + 1); + s2 = realloc(name, sizeof(char) * (len2 + 1)); if (!s2) { free(name); @@ -215,7 +215,7 @@ _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, con len = s2 - style; style_old = style; - style = calloc(sizeof(char), len + 1); + style = malloc(sizeof(char) * (len + 1)); strncpy(style, style_old, len); efp->styles = eina_list_append(efp->styles, eina_stringshare_add(style)); free(style);