From 28e811c09c5f32833906a5025137c947b2b7e0f6 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 2 Feb 2008 21:12:16 +0100 Subject: Use of sizeof(char) in all malloc/realloc for strings --- src/gui/gui-action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/gui-action.c') diff --git a/src/gui/gui-action.c b/src/gui/gui-action.c index 1f0eb5337..b33bdcdd5 100644 --- a/src/gui/gui-action.c +++ b/src/gui/gui-action.c @@ -63,7 +63,7 @@ gui_action_clipboard_copy (char *buffer, int size) if (gui_input_clipboard != NULL) free (gui_input_clipboard); - gui_input_clipboard = (char *)malloc( (size + 1) * sizeof(*gui_input_clipboard)); + gui_input_clipboard = (char *)malloc((size + 1) * sizeof(*gui_input_clipboard)); if (gui_input_clipboard) { -- cgit v1.2.3