From: Ralph Corderoy Date: Sun, 24 Sep 2017 11:21:48 +0000 (+0100) Subject: Replace `sizeof (char)' with 1, then remove if a multiplier. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/36672e5977cdfee454f5ccb1946a19cd43ec5ba0?hp=b3bcb44d340fd017efac8bb31c3859dd91b24af3 Replace `sizeof (char)' with 1, then remove if a multiplier. --- diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index aee86ecb..b669ad53 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -432,7 +432,7 @@ show_content_aux2 (CT ct, int alternate, char *cracked, char *buffer, } while ((cc = read(fd, readbuf, sizeof(readbuf))) > 0) { - if ((ssize_t) fwrite(readbuf, sizeof(char), cc, stdout) < cc) { + if ((ssize_t) fwrite(readbuf, 1, cc, stdout) < cc) { advise ("putline", "fwrite"); } lastchar = readbuf[cc - 1]; diff --git a/uip/popsbr.c b/uip/popsbr.c index f913fce2..d79c8b3d 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -108,7 +108,7 @@ parse_proxy(char *proxy, char *host) /* put together list of arguments */ p = pargv = mh_xmalloc(pargc * sizeof(char *)); - c = *pargv = mh_xmalloc(plen * sizeof(char)); + c = *pargv = mh_xmalloc(plen); for (cur = pro; *cur; cur++) { if (isspace(*cur) && cur[1] && !isspace(cur[1])) { *c++ = '\0';