summaryrefslogtreecommitdiff
blob: 22eb229d8a3de5ebe94c2d1314d30a393b4f4cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff -urp RasMol-2.7.5.2/src/command.c RasMol-2.7.5.2_sprintf/src/command.c
--- RasMol-2.7.5.2/src/command.c	2011-05-15 01:23:49.000000000 +0700
+++ RasMol-2.7.5.2_sprintf/src/command.c	2014-02-12 18:02:24.633489549 +0700
@@ -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]);
             }