From f507c057f9541a1210f6329e45fb348a42fe77d3 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Tue, 21 May 2013 05:43:22 +0000 Subject: - Update to 1.0.4 PR: 178595 Submitted by: Ports Fury --- graphics/cinepaint/files/patch-app__menus.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 graphics/cinepaint/files/patch-app__menus.c (limited to 'graphics/cinepaint/files/patch-app__menus.c') diff --git a/graphics/cinepaint/files/patch-app__menus.c b/graphics/cinepaint/files/patch-app__menus.c new file mode 100644 index 000000000000..815843f66478 --- /dev/null +++ b/graphics/cinepaint/files/patch-app__menus.c @@ -0,0 +1,25 @@ +--- app/menus.c.orig ++++ app/menus.c +@@ -1597,7 +1597,7 @@ + char* + menu_entry_translate (const char* entry) + { +- char *text = (char*) calloc (1024, sizeof(char)), ++ char *text = (char*) calloc (sizeof(char), 1024), + *word = 0; + const char *tmp = 0; + +@@ -1647,11 +1647,11 @@ + // resize memory + if(strlen(text)) + { +- word = (char*) calloc( strlen(text) + 1, sizeof(char) ); ++ word = (char*) calloc( sizeof(char), strlen(text) + 4 ); + memcpy( word, text, strlen( text ) + 1 ); + free (text); + return word; + } + else +- return (char*) calloc(1,sizeof(char)); ++ return (char*) calloc(sizeof(char),1); + } -- cgit v1.2.3