diff --git a/inews/clientlib.c b/inews/clientlib.c index cdb9752..38aad28 100644 --- a/inews/clientlib.c +++ b/inews/clientlib.c @@ -275,11 +275,11 @@ char *machine; /* bcopy(*cp, (char *)&sin.sin_addr, hp->h_length);*/ if (x < 0) - fprintf(stderr, "trying %s\n", inet_ntoa(sin.sin_addr)); + fprintf(stderr, "trying %d\n", inet_ntoa(sin.sin_addr)); x = connect(s, (struct sockaddr *)&sin, sizeof (sin)); if (x == 0) break; - fprintf(stderr, "connection to %s: ", inet_ntoa(sin.sin_addr)); + fprintf(stderr, "connection to %d: ", inet_ntoa(sin.sin_addr)); perror(""); (void) close(s); } diff --git a/inews/inews.c b/inews/inews.c index 5fa309d..0b0bab4 100644 --- a/inews/inews.c +++ b/inews/inews.c @@ -303,7 +303,7 @@ gen_frompath() putc(*cp, ser_wr_fp); else { /* Stupid & hack. God damn it. */ putc(toupper(passwd->pw_name[0]), ser_wr_fp); - fprintf(ser_wr_fp, passwd->pw_name+1); + fprintf(ser_wr_fp, "%s", passwd->pw_name+1); } fprintf(ser_wr_fp, ")\r\n"); diff --git a/unix/uuenview.c b/unix/uuenview.c index 7acfd3b..726a2a6 100644 --- a/unix/uuenview.c +++ b/unix/uuenview.c @@ -310,7 +310,7 @@ SendMkCommand (char **rcptlist, char *towhom, char *subject, int isemail) } if ((*rcptlist = (char *) malloc (strlen (towhom) + 16)) == NULL) { - fprintf (stderr, "error: Out of memory allocating %d bytes\n", + fprintf (stderr, "error: Out of memory allocating %zd bytes\n", strlen (towhom)+16); _FP_free (command); return NULL; @@ -483,7 +483,7 @@ AttachFiles (char *towhom, char *subject, if (_FP_stristr (input, "multipart") != NULL) { /* it is already a multipart posting. grab the boundary */ if ((ptr = _FP_stristr (input, "boundary=")) != NULL) { - fprintf(thepipe, input); + fprintf(thepipe, "%s", input); strcpy (boundary, ParseValue (ptr)); hadmulti = 1; } diff --git a/uulib/uuencode.c b/uulib/uuencode.c index 691879a..4888085 100644 --- a/uulib/uuencode.c +++ b/uulib/uuencode.c @@ -931,7 +931,7 @@ UUEncodePartial (FILE *outfile, FILE *infile, eolstring); } - fprintf (outfile, "=ypart begin=%d end=%d%s", + fprintf (outfile, "=ypart begin=%ld end=%ld%s", (partno-1)*linperfile*128+1, (partno*linperfile*128) < progress.totsize ? (partno*linperfile*128) : progress.totsize, @@ -997,14 +997,14 @@ UUEncodePartial (FILE *outfile, FILE *infile, } else if (encoding == YENC_ENCODED) { if (numparts != 1) { - fprintf (outfile, "=yend size=%d part=%d pcrc32=%08lx", + fprintf (outfile, "=yend size=%ld part=%d pcrc32=%08lx", (partno*linperfile*128) < progress.totsize ? linperfile*128 : (progress.totsize-(partno-1)*linperfile*128), partno, pcrc); } else { - fprintf (outfile, "=yend size=%d", + fprintf (outfile, "=yend size=%ld", progress.totsize); } if (feof (theifile)) @@ -1405,7 +1405,7 @@ UUEncodeToFile (FILE *infile, char *infname, int encoding, eolstring); } - fprintf (outfile, "=ypart begin=%d end=%d%s", + fprintf (outfile, "=ypart begin=%ld end=%ld%s", (part-1)*linperfile*128+1, (part*linperfile*128) < progress.totsize ? (part*linperfile*128) : progress.totsize, @@ -1451,14 +1451,14 @@ UUEncodeToFile (FILE *infile, char *infname, int encoding, } else if (encoding == YENC_ENCODED) { if (numparts != 1) { - fprintf (outfile, "=yend size=%d part=%d pcrc32=%08lx", + fprintf (outfile, "=yend size=%ld part=%d pcrc32=%08lx", (part*linperfile*128) < progress.totsize ? linperfile*128 : (progress.totsize-(part-1)*linperfile*128), part, pcrc); } else { - fprintf (outfile, "=yend size=%d", + fprintf (outfile, "=yend size=%ld", progress.totsize); } if (feof (theifile))