summaryrefslogtreecommitdiff
path: root/network/openvas-administrator/openvas-administrator-0.7.0-format.patch
diff options
context:
space:
mode:
authordsomero <xgizzmo@gmail.com>2010-05-23 14:01:40 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-23 23:29:30 -0500
commite1cf674191c37e14f504cd47cdff22a31ecb3bbf (patch)
tree2beaf49e2d32aff15f4d87ec8cb47db00edee2e3 /network/openvas-administrator/openvas-administrator-0.7.0-format.patch
parenta3f71c9c74654494a13b4e3e7f39993540331424 (diff)
downloadslackbuilds-e1cf674191c37e14f504cd47cdff22a31ecb3bbf.tar.gz
network/openvas-administrator: Miscellaneous cleanups and patch.
Cleaned up build and added an upstream patch.
Diffstat (limited to 'network/openvas-administrator/openvas-administrator-0.7.0-format.patch')
-rw-r--r--network/openvas-administrator/openvas-administrator-0.7.0-format.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/network/openvas-administrator/openvas-administrator-0.7.0-format.patch b/network/openvas-administrator/openvas-administrator-0.7.0-format.patch
new file mode 100644
index 0000000000..2a0e0add11
--- /dev/null
+++ b/network/openvas-administrator/openvas-administrator-0.7.0-format.patch
@@ -0,0 +1,27 @@
+Index: src/oap.c
+===================================================================
+--- src/oap.c
++++ src/oap.c
+@@ -633,7 +633,7 @@
+ if (((buffer_size_t) TO_CLIENT_BUFFER_SIZE) - to_client_end
+ < strlen (msg))
+ {
+- tracef (" send_to_client out of space (%i < %i)\n",
++ tracef (" send_to_client out of space (%i < %zu)\n",
+ ((buffer_size_t) TO_CLIENT_BUFFER_SIZE) - to_client_end,
+ strlen (msg));
+ return TRUE;
+Index: src/oxpd.c
+===================================================================
+--- src/oxpd.c
++++ src/oxpd.c
+@@ -247,7 +247,8 @@
+ tracef ("<= client Input may contain password, suppressed.\n");
+ else
+ tracef ("<= client \"%.*s\"\n",
+- count,
++ /* Cast is safe because count is bounded by from_client size. */
++ (int) count,
+ from_client + from_client_end);
+ #else
+ tracef ("<= client %i bytes\n", count);