[SCM] Rasmol packaging branch, master, updated. debian/2.7.4.2-5-67-g5e12029

Teemu Ikonen tpikonen at gmail.com
Sun May 19 20:41:34 UTC 2013


The following commit has been merged in the master branch:
commit fd9e5609c1a7fa726c6c0bffc5c6d51a75afd57c
Author: Teemu Ikonen <tpikonen at gmail.com>
Date:   Sat May 18 01:14:44 2013 +0200

    Use proper format in all sprintf calls.
    
    Fix sprintf calls which fail when compiling with -werror=format-security.

diff --git a/src/command.c b/src/command.c
index 83da7ff..93e38be 100755
--- a/src/command.c
+++ b/src/command.c
@@ -1286,7 +1286,7 @@ void ShowRecordCommand( void ) {
         if (record_on[1]) WriteString("record appearance on\n");
         else WriteString("record apperance off\n");
         if (RecordMaxMS == 1.) {
-            sprintf(param,RecordTemplate);
+            sprintf(param, "%s", RecordTemplate);
         } else{
             sprintf(param,RecordTemplate,millisec<0?0:millisec);
         }
@@ -1381,7 +1381,7 @@ void ShowPlayCommand( void ) {
             WriteString(param);
         }
         if (PlayMaxMS == 1.) {
-            sprintf(param,PlayTemplate);
+            sprintf(param, "%s", PlayTemplate);
         } else{
             sprintf(param,PlayTemplate,millisec<0?0:millisec);
         }
@@ -1469,7 +1469,7 @@ void WriteMovieFrame( void ) {
         RecordPause = True;
     } else {
         if (RecordMaxMS == 1.) {
-          sprintf(param,RecordTemplate);
+          sprintf(param, "%s", RecordTemplate);
         } else{
           sprintf(param,RecordTemplate,millisec);
         }
@@ -1505,7 +1505,7 @@ static int PlayMovieFrame( void ) {
         for (play_frame[1] = 0;play_frame[1]<=millisec; play_frame[1]++) 
         {
             if (RecordMaxMS == 1.) {
-                sprintf(param,PlayTemplate);
+                sprintf(param, "%s", PlayTemplate);
             } else{
                 sprintf(param,PlayTemplate,millisec-play_frame[1]);
             }

-- 
Rasmol packaging



More information about the debian-science-commits mailing list