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
|
@ -168,7 +168,7 @@ rea(void)
|
|||
nbytes = tgm.tel_length;
|
||||
if (nbytes > sizeof(msgbuf) - 1)
|
||||
nbytes = sizeof(msgbuf) - 1;
|
||||
(void)fread(msgbuf, sizeof(s_char), nbytes, telfp);
|
||||
fread(msgbuf, 1, nbytes, telfp);
|
||||
msgbuf[nbytes] = 0;
|
||||
if (readit)
|
||||
uprnf(msgbuf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue