removed sizeof(char)

sizeof(char) == 1 according to standard
This commit is contained in:
Dmitry Podgorny
2013-08-03 13:17:50 +03:00
parent 51b2137705
commit c559d96d77
4 changed files with 9 additions and 9 deletions

View File

@@ -1041,7 +1041,7 @@ cmd_autocomplete(char *input, int *size)
inp_cpy[i] = '\0';
found = autocomplete_complete(commands_ac, inp_cpy);
if (found != NULL) {
auto_msg = (char *) malloc((strlen(found) + 1) * sizeof(char));
auto_msg = (char *) malloc(strlen(found) + 1);
strcpy(auto_msg, found);
inp_replace_input(input, auto_msg, size);
free(auto_msg);