commit 8efa888421c87fff8082c56bacd6e6b5540c5b55
Author: Jan RÄ™korajski <[email protected]>
Date:   Tue Nov 13 18:35:07 2012 +0100

    - fix error when building with -Wformat-security

 format-security.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..3377e71
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- ZoneMinder-1.25.0/src/zm_signal.cpp~       2011-06-21 11:19:11.000000000 
+0200
++++ ZoneMinder-1.25.0/src/zm_signal.cpp        2012-11-13 18:33:27.135723612 
+0100
+@@ -110,7 +110,7 @@
+       char **messages = backtrace_symbols( trace, trace_size );
+     if ( size_t offset = strcspn( messages[trace_size-1], " " ) )
+     {
+-        snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), messages[trace_size-1] 
);
++        snprintf( cmd_ptr, sizeof(cmd)-(cmd_ptr-cmd), "%s", 
messages[trace_size-1] );
+         cmd_ptr += offset;
+     }
+     else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zoneminder.git/commitdiff/61346d0d5131673faa1eada6e13a7c417ab1ea14

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to