Removed strcpy calls

This commit is contained in:
James Booth
2014-04-02 21:01:20 +01:00
parent e1db531875
commit a720ef2627
8 changed files with 31 additions and 34 deletions

View File

@@ -277,8 +277,7 @@ _status_bar_print_message(const char * const msg)
if (message != NULL) {
free(message);
}
message = (char *) malloc(strlen(msg) + 1);
strcpy(message, msg);
message = strdup(msg);
mvwprintw(status_bar, 0, 10, message);
int cols = getmaxx(stdscr);