INN commit: trunk/nnrpd (post.c)
INN Commit
rra at isc.org
Sun Apr 14 16:34:27 UTC 2013
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);
More information about the inn-committers
mailing list