]> git.pld-linux.org Git - packages/libnemesi.git/blob - libnemesi-format.patch
- added format patch (fixes build with -Werror=format-security)
[packages/libnemesi.git] / libnemesi-format.patch
1 --- libnemesi/src/rtsp/rtsp_send.c.orig 2013-02-16 19:54:26.000000000 +0100
2 +++ libnemesi/src/rtsp/rtsp_send.c      2013-02-17 13:04:04.448030306 +0100
3 @@ -41,10 +41,10 @@
4                          const char *content_base, const char *pathname)
5  {
6      if (!pathname || *pathname == 0 || *pathname == '*') {
7 -        snprintf(str, size, content_base);
8 +        snprintf(str, size, "%s", content_base);
9      } else if (!content_base || *content_base == 0 ||
10                 strstr(pathname,"://") != NULL) {
11 -        snprintf(str, size, pathname);
12 +        snprintf(str, size, "%s", pathname);
13      } else {
14          snprintf(str, size, "%s/%s", content_base, pathname);
15      }
This page took 0.028226 seconds and 3 git commands to generate.