When using packaging tools like dpkg-buildpackage, the Werror
security_format CFLAG fails compilation. This patchset fixes that.

Arvind R.
---
 cinelerra/formattools.C |    2 +-
 cinelerra/record.C      |    2 +-
 guicast/stringfile.C    |    2 +-
 libmpeg3/mpeg3tocutil.c |    4 ++--
 mpeg2enc/mpeg2enc.c     |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
---
--- a/libmpeg3/mpeg3tocutil.c   2012-12-03 21:13:46.000000000 +0530
+++ b/libmpeg3/mpeg3tocutil.c   2013-01-16 04:18:05.000000000 +0530
@@ -1205,7 +1205,7 @@ void mpeg3_stop_toc(mpeg3_t *file)

 // Store file information
        PUT_INT32(FILE_INFO);
-       fprintf(file->toc_fd, file->fs->path);
+       fprintf(file->toc_fd, "%s", file->fs->path);
        for(j = strlen(file->fs->path); j < MPEG3_STRLEN; j++)
                        fputc(0, file->toc_fd);
        PUT_INT64(file->source_date);
@@ -1236,7 +1236,7 @@ void mpeg3_stop_toc(mpeg3_t *file)
 // Path
                PUT_INT32(TITLE_PATH);

-               fprintf(file->toc_fd, title->fs->path);
+               fprintf(file->toc_fd, "%s", title->fs->path);

 // Pad path with 0
                for(j = strlen(title->fs->path); j < MPEG3_STRLEN; j++)
--- a/mpeg2enc/mpeg2enc.c       2012-12-03 21:13:46.000000000 +0530
+++ b/mpeg2enc/mpeg2enc.c       2013-01-16 04:32:02.000000000 +0530
@@ -340,7 +340,7 @@ static void init()
 void error(text)
 char *text;
 {
-  fprintf(stderr,text);
+  fprintf(stderr,"%s",text);
   putc('\n',stderr);
   exit(1);
 }
--- a/guicast/stringfile.C      2012-12-03 21:13:46.000000000 +0530
+++ b/guicast/stringfile.C      2013-01-16 04:38:43.000000000 +0530
@@ -230,7 +230,7 @@ int StringFile::writeline(char *arg1, in
        }
        
        for(i = 0; i < indent; i++, pointer++) string[pointer] = ' ';
-       sprintf(&string[pointer], arg1);
+       sprintf(&string[pointer], "%s", arg1);
        pointer += strlen(arg1);
        return 0;
 }
--- a/cinelerra/formattools.C   2012-12-03 21:13:46.000000000 +0530
+++ b/cinelerra/formattools.C   2013-01-16 04:43:33.000000000 +0530
@@ -322,7 +322,7 @@ void FormatTools::update_extension()
                        *ptr = '.';
                }
                ptr++;
-               sprintf(ptr, extension);
+               sprintf(ptr, "%s", extension);

                int character1 = ptr - asset->path;
                int character2 = ptr - asset->path + strlen(extension);
--- a/cinelerra/record.C        2012-12-03 21:13:46.000000000 +0530
+++ b/cinelerra/record.C        2013-01-16 04:50:22.000000000 +0530
@@ -356,7 +356,7 @@ void Record::source_to_text(char *string
                        if(batch->channel < 0 || batch->channel >= 
channeldb->size())
                                sprintf(string, _("None"));
                        else
-                               sprintf(string, 
channeldb->get(batch->channel)->title);
+                               sprintf(string, "%s", 
channeldb->get(batch->channel)->title);
                        break;
        }
 }
_______________________________________________
Cinelerra mailing list
[email protected]
https://lists.skolelinux.org/listinfo/cinelerra

Reply via email to