From: Jakub Bogusz Date: Sun, 17 Feb 2013 13:26:20 +0000 (+0100) Subject: - added format patch (fixes build with -Werror=format-security) X-Git-Tag: auto/th/libnemesi-0.7.0-0.20101208.1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e3eeefb5006eb79a7ed02f8407166a0e8788e9ac;p=packages%2Flibnemesi.git - added format patch (fixes build with -Werror=format-security) --- diff --git a/libnemesi-format.patch b/libnemesi-format.patch new file mode 100644 index 0000000..5894117 --- /dev/null +++ b/libnemesi-format.patch @@ -0,0 +1,15 @@ +--- libnemesi/src/rtsp/rtsp_send.c.orig 2013-02-16 19:54:26.000000000 +0100 ++++ libnemesi/src/rtsp/rtsp_send.c 2013-02-17 13:04:04.448030306 +0100 +@@ -41,10 +41,10 @@ + const char *content_base, const char *pathname) + { + if (!pathname || *pathname == 0 || *pathname == '*') { +- snprintf(str, size, content_base); ++ snprintf(str, size, "%s", content_base); + } else if (!content_base || *content_base == 0 || + strstr(pathname,"://") != NULL) { +- snprintf(str, size, pathname); ++ snprintf(str, size, "%s", pathname); + } else { + snprintf(str, size, "%s/%s", content_base, pathname); + } diff --git a/libnemesi.spec b/libnemesi.spec index 6f2b406..3ff3463 100644 --- a/libnemesi.spec +++ b/libnemesi.spec @@ -13,6 +13,7 @@ Group: Libraries # git clone git://git.lscube.org/libnemesi Source0: %{name}.tar.xz # Source0-md5: 1ba1385440e44dde3009a285ae1164aa +Patch0: %{name}-format.patch URL: http://lscube.org/projects/libnemesi_rtsp_rtp_client_library BuildRequires: autoconf >= 2.61 BuildRequires: automake @@ -76,6 +77,7 @@ Statyczna biblioteka libNeMeSi. %prep %setup -q -n %{name} +%patch0 -p1 %build %{__libtoolize}