]> diplodocus.org Git - nmh/commitdiff
Replace `sizeof (char)' with 1, then remove if a multiplier.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 24 Sep 2017 11:21:48 +0000 (12:21 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 24 Sep 2017 11:37:52 +0000 (12:37 +0100)
uip/mhshowsbr.c
uip/popsbr.c

index aee86ecb77f75994dc7cc53645d2cf75bb4b69ac..b669ad53166756dc734b195e87da4b450570575b 100644 (file)
@@ -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];
index f913fce2ef5733e02818d879df4ee62c008de3b6..d79c8b3d2f628bfbefb5fd4a8139b284c752c181 100644 (file)
@@ -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';