about summary refs log tree commit diff stats
path: root/src/ui/titlebar.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-08-25 23:27:42 +0100
committerJames Booth <boothj5@gmail.com>2013-08-25 23:27:42 +0100
commitd3cfeb9d5cac0520d43dbf35e36d9364c35a95e5 (patch)
treee262e193eadbb95717e6b04612ace879c7be5848 /src/ui/titlebar.c
parent3c39befa5e565bbc3cc13a0f060a8d7a18f735f1 (diff)
parente21bf8a18d682ae95699b6ddedf17aa870303a3c (diff)
downloadprofani-tty-d3cfeb9d5cac0520d43dbf35e36d9364c35a95e5.tar.gz
Merge branch 'master' into windows
Diffstat (limited to 'src/ui/titlebar.c')
-rw-r--r--src/ui/titlebar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index 4b3ca997..791a5fbe 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -87,7 +87,7 @@ title_bar_refresh(void)
                     free(current_title);
                 }
 
-                current_title = (char *) malloc((strlen(recipient) + 1) * sizeof(char));
+                current_title = (char *) malloc(strlen(recipient) + 1);
                 strcpy(current_title, recipient);
 
                 title_bar_draw();
@@ -113,7 +113,7 @@ title_bar_show(const char * const title)
     if (current_title != NULL)
         free(current_title);
 
-    current_title = (char *) malloc((strlen(title) + 1) * sizeof(char));
+    current_title = (char *) malloc(strlen(title) + 1);
     strcpy(current_title, title);
     _title_bar_draw_title();
 }
@@ -138,7 +138,7 @@ title_bar_set_recipient(const char * const from)
         free(current_title);
     }
 
-    current_title = (char *) malloc((strlen(from) + 1) * sizeof(char));
+    current_title = (char *) malloc(strlen(from) + 1);
     strcpy(current_title, from);
 
     dirty = TRUE;
@@ -160,10 +160,10 @@ title_bar_set_typing(gboolean is_typing)
     }
 
     if (is_typing) {
-        current_title = (char *) malloc((strlen(recipient) + 13) * sizeof(char));
+        current_title = (char *) malloc(strlen(recipient) + 13);
         sprintf(current_title, "%s (typing...)", recipient);
     } else {
-        current_title = (char *) malloc((strlen(recipient) + 1) * sizeof(char));
+        current_title = (char *) malloc(strlen(recipient) + 1);
         strcpy(current_title, recipient);
     }