diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-08-03 13:17:50 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2013-08-03 13:17:50 +0300 |
commit | c559d96d7739d499f9b747839e1115d28976306f (patch) | |
tree | 7784646790dcefe3854f4c347712f051825875d0 /src/ui/statusbar.c | |
parent | 51b2137705b99ad45a8d4d646da9f3f8e2b3b4db (diff) | |
download | profani-tty-c559d96d7739d499f9b747839e1115d28976306f.tar.gz |
removed sizeof(char)
sizeof(char) == 1 according to standard
Diffstat (limited to 'src/ui/statusbar.c')
-rw-r--r-- | src/ui/statusbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c index 3f0798d3..cd218e73 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -191,7 +191,7 @@ status_bar_print_message(const char * const msg) werase(status_bar); - message = (char *) malloc((strlen(msg) + 1) * sizeof(char)); + message = (char *) malloc(strlen(msg) + 1); strcpy(message, msg); mvwprintw(status_bar, 0, 10, message); |