cfengine/cfengine-3.4.0b2.patch

13 lines
729 B
Diff

diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-cfengine-3.4.0b2/src/server.c ./src/server.c
--- ../orig-cfengine-3.4.0b2/src/server.c 2012-10-01 17:53:14.000000000 +0200
+++ ./src/server.c 2012-10-08 16:27:48.661757672 +0200
@@ -2359,7 +2359,7 @@
if (strlen(ReadLastNode(filename)) > CF_MAXLINKSIZE)
{
- snprintf(sendbuffer, CF_BUFSIZE * 2, "BAD: Filename suspiciously long [%s]\n", filename);
+ snprintf(sendbuffer, CF_BUFSIZE, "BAD: Filename suspiciously long [%s]\n", filename);
CfOut(cf_error, "", "%s", sendbuffer);
SendTransaction(conn->sd_reply, sendbuffer, 0, CF_DONE);
return -1;