diff options
Diffstat (limited to 'sci-chemistry/rasmol/files/rasmol-2.7.5.2-format-security.patch')
-rw-r--r-- | sci-chemistry/rasmol/files/rasmol-2.7.5.2-format-security.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/sci-chemistry/rasmol/files/rasmol-2.7.5.2-format-security.patch b/sci-chemistry/rasmol/files/rasmol-2.7.5.2-format-security.patch deleted file mode 100644 index 22eb229d8a3d..000000000000 --- a/sci-chemistry/rasmol/files/rasmol-2.7.5.2-format-security.patch +++ /dev/null @@ -1,39 +0,0 @@ -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]); - } |