Send inn-committers mailing list submissions to inn-committers@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/inn-committers or, via email, send a message with subject or body 'help' to inn-committers-requ...@lists.isc.org You can reach the person managing the list at inn-committers-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of inn-committers digest..." Today's Topics: 1. INN commit: trunk/nnrpd (post.c) (INN Commit) 2. INN commit: branches/2.5/nnrpd (post.c) (INN Commit) ---------------------------------------------------------------------- Message: 1 Date: Sun, 14 Apr 2013 09:34:27 -0700 (PDT) From: INN Commit <r...@isc.org> To: inn-committ...@isc.org Subject: INN commit: trunk/nnrpd (post.c) Message-ID: <20130414163427.a11b167...@hope.eyrie.org> Date: Sunday, April 14, 2013 @ 09:34:27 Author: iulius Revision: 9467 compilation with gcc 4.8.0 Explicitly give the known size of a pointer used in a snprintf() call in the OfferArticle() function. New -Wsizeof-pointer-memaccess warning introduced in gcc 4.8.0. --Cette ligne, et les suivantes ci-dessous, seront ignor?\195?\169es-- M post.c Modified: trunk/nnrpd/post.c --------+ post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: post.c =================================================================== --- post.c 2013-03-22 15:09:01 UTC (rev 9466) +++ post.c 2013-04-14 16:34:27 UTC (rev 9467) @@ -881,7 +881,7 @@ fprintf(ToServer, "IHAVE %s\r\n", HDR(HDR__MESSAGEID)); if (FLUSH_ERROR(ToServer) || fgets(buff, buffsize, FromServer) == NULL) { - snprintf(buff, sizeof(buff), CANTSEND, "IHAVE", strerror(errno)); + snprintf(buff, buffsize, CANTSEND, "IHAVE", strerror(errno)); return -1; } return atoi(buff); ------------------------------ Message: 2 Date: Sun, 14 Apr 2013 09:35:54 -0700 (PDT) From: INN Commit <r...@isc.org> To: inn-committ...@isc.org Subject: INN commit: branches/2.5/nnrpd (post.c) Message-ID: <20130414163554.99bfc67...@hope.eyrie.org> Date: Sunday, April 14, 2013 @ 09:35:54 Author: iulius Revision: 9468 compilation with gcc 4.8.0 Explicitly give the known size of a pointer used in a snprintf() call in the OfferArticle() function. New -Wsizeof-pointer-memaccess warning introduced in gcc 4.8.0. Modified: branches/2.5/nnrpd/post.c --------+ post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: post.c =================================================================== --- post.c 2013-04-14 16:34:27 UTC (rev 9467) +++ post.c 2013-04-14 16:35:54 UTC (rev 9468) @@ -864,7 +864,7 @@ fprintf(ToServer, "IHAVE %s\r\n", HDR(HDR__MESSAGEID)); if (FLUSH_ERROR(ToServer) || fgets(buff, buffsize, FromServer) == NULL) { - snprintf(buff, sizeof(buff), CANTSEND, "IHAVE", strerror(errno)); + snprintf(buff, buffsize, CANTSEND, "IHAVE", strerror(errno)); return -1; } return atoi(buff); ------------------------------ _______________________________________________ inn-committers mailing list inn-committers@lists.isc.org https://lists.isc.org/mailman/listinfo/inn-committers End of inn-committers Digest, Vol 50, Issue 1 *********************************************