diff options
| author | joerg <joerg@pkgsrc.org> | 2013-03-24 16:47:47 +0000 | 
|---|---|---|
| committer | joerg <joerg@pkgsrc.org> | 2013-03-24 16:47:47 +0000 | 
| commit | 653bfe530f6163a8b0bf15d20f07776d24c73ea2 (patch) | |
| tree | 5c902b431cff051570527598eecfdb79726a58f4 /security/zoneminder/patches/patch-src_zm__utils.cpp | |
| parent | 5426e8abe3c97623b38e5d9bba8c74a665d663c5 (diff) | |
| download | pkgsrc-653bfe530f6163a8b0bf15d20f07776d24c73ea2.tar.gz | |
Fix build with Clang and as unprivileged user.
Diffstat (limited to 'security/zoneminder/patches/patch-src_zm__utils.cpp')
| -rw-r--r-- | security/zoneminder/patches/patch-src_zm__utils.cpp | 26 | 
1 files changed, 26 insertions, 0 deletions
| diff --git a/security/zoneminder/patches/patch-src_zm__utils.cpp b/security/zoneminder/patches/patch-src_zm__utils.cpp new file mode 100644 index 00000000000..488fef6a4b9 --- /dev/null +++ b/security/zoneminder/patches/patch-src_zm__utils.cpp @@ -0,0 +1,26 @@ +$NetBSD: patch-src_zm__utils.cpp,v 1.1 2013/03/24 16:47:47 joerg Exp $ + +--- src/zm_utils.cpp.orig	2011-06-21 09:19:11.000000000 +0000 ++++ src/zm_utils.cpp +@@ -38,21 +38,6 @@ const std::string stringtf( const char * +     return( tempString ); + } +  +-const std::string stringtf( const std::string &format, ... ) +-{ +-    va_list ap; +-    char tempBuffer[8192]; +-    std::string tempString; +- +-    va_start(ap, format ); +-    vsnprintf( tempBuffer, sizeof(tempBuffer), format.c_str() , ap ); +-    va_end(ap); +- +-    tempString = tempBuffer; +- +-    return( tempString ); +-} +- + bool startsWith( const std::string &haystack, const std::string &needle ) + { +     return( haystack.substr( 0, needle.length() ) == needle ); | 
