Remove useless multiplications with sizeof(char) and sizeof(s_char).
Replace by literal 1 in other contexts.
This commit is contained in:
parent
8ca2468706
commit
8cd3845b08
11 changed files with 14 additions and 17 deletions
|
@ -164,7 +164,7 @@ termio(int fd, int sock, FILE *auxfi)
|
|||
if (*p == '\n') {
|
||||
if (tagging) {
|
||||
tag = malloc(sizeof(struct tagstruct));
|
||||
tag->item = malloc((1 + p - s) * sizeof(char));
|
||||
tag->item = malloc(1 + p - s);
|
||||
tag->next = taglist;
|
||||
taglist = tag;
|
||||
t = tag->item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue