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/command | |
parent | 51b2137705b99ad45a8d4d646da9f3f8e2b3b4db (diff) | |
download | profani-tty-c559d96d7739d499f9b747839e1115d28976306f.tar.gz |
removed sizeof(char)
sizeof(char) == 1 according to standard
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c index 45086e18..1017b899 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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); |