This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 6547408cece6ad43ac32c4fc754288018c0da2b0
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Thu May 30 17:43:56 2024 +0100
fix calloc num, size where it's wrong
@fix
---
src/bin/e_font.c | 4 ++--
src/bin/e_imc_main.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/bin/e_font.c b/src/bin/e_font.c
index 81423aca6..e7171019b 100644
--- a/src/bin/e_font.c
+++ b/src/bin/e_font.c
@@ -163,7 +163,7 @@ _e_font_fontconfig_name_parse(Eina_Hash **font_hash, E_Font_Properties *efp, con
int len;
len = s1 - font;
- name = calloc(sizeof(char), len + 1);
+ name = calloc(len + 1, sizeof(char));
strncpy(name, font, len);
/* Get subname (should be english) */
@@ -204,7 +204,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 = calloc(len + 1, sizeof(char));
strncpy(style, style_old, len);
efp->styles = eina_list_append(efp->styles, eina_stringshare_add(style));
free(style);
diff --git a/src/bin/e_imc_main.c b/src/bin/e_imc_main.c
index cef9253ad..91f6cf859 100644
--- a/src/bin/e_imc_main.c
+++ b/src/bin/e_imc_main.c
@@ -145,7 +145,7 @@ main(int argc, char **argv)
/* else create new imc */
if (write_ops != 0)
{
- write_imc = calloc(sizeof(E_Input_Method_Config), 1);
+ write_imc = calloc(1, sizeof(E_Input_Method_Config));
write_imc->version = E_INTL_INPUT_METHOD_CONFIG_VERSION;
if (read_imc)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.