freebsd-ports/multimedia/zoneminder/files/patch-src_zm_stream.cpp
Boris Samorodov 3e97341844 . update to version 1.24.4; changelog:
http://www.zoneminder.com/wiki/index.php/Change_History#Release_1.24.4_-_2011.2F05.2F30;
. remove patches that were incorporated upstream;
. add a patch to fix zm_stream.cpp (add one byte to the path length);  [1]
. add one more site to MASTER_SITES.

Submitted by:	Vladimir Pushkar <vladimir.pushkar@gmail.com> (via email)  [1]
2011-06-05 11:11:35 +00:00

11 lines
581 B
C++

--- src/zm_stream.cpp.orig 2009-05-08 16:47:27.000000000 +0300
+++ src/zm_stream.cpp 2011-05-31 12:53:35.182245374 +0300
@@ -289,7 +289,7 @@
strncpy( loc_addr.sun_path, loc_sock_path, sizeof(loc_addr.sun_path) );
loc_addr.sun_family = AF_UNIX;
- if ( bind( sd, (struct sockaddr *)&loc_addr, strlen(loc_addr.sun_path)+sizeof(loc_addr.sun_family)) < 0 )
+ if ( bind( sd, (struct sockaddr *)&loc_addr, strlen(loc_addr.sun_path) + 1 +sizeof(loc_addr.sun_family)) < 0 )
{
Fatal( "Can't bind: %s", strerror(errno) );
}