diff options
Diffstat (limited to 'multimedia/zoneminder-h264/files/patch-src_zm__logger.cpp')
-rw-r--r-- | multimedia/zoneminder-h264/files/patch-src_zm__logger.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/multimedia/zoneminder-h264/files/patch-src_zm__logger.cpp b/multimedia/zoneminder-h264/files/patch-src_zm__logger.cpp new file mode 100644 index 000000000000..a1426bbc8fa3 --- /dev/null +++ b/multimedia/zoneminder-h264/files/patch-src_zm__logger.cpp @@ -0,0 +1,23 @@ +--- src/zm_logger.cpp.orig 2016-11-03 11:08:37 UTC ++++ src/zm_logger.cpp +@@ -515,8 +515,9 @@ void Logger::logPrint( bool hex, const c + va_list argPtr; + struct timeval timeVal; + +- const char * const file = basename(filepath); +- ++ char *filecopy = strdup(filepath); ++ const char * const file = basename(filecopy); ++ + if ( level < PANIC || level > DEBUG9 ) + Panic( "Invalid logger level %d", level ); + +@@ -635,6 +636,8 @@ void Logger::logPrint( bool hex, const c + abort(); + exit( -1 ); + } ++ ++ free(filecopy); + } + } + |