[calculix-cgx] 05/06: No format arg in sprintf Adding format arguments to some sprintf

Wolfgang Fütterer debian at wlf-online.de
Tue May 17 20:51:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

wlfuetter-guest pushed a commit to branch patch-queue/master
in repository calculix-cgx.

commit 0d61840fe4561d399944a4943fa4e005858016fa
Author: Wolfgang Fütterer <debian at wlf-online.de>
Date:   Wed Jan 20 15:15:54 2016 +0100

    No format arg in sprintf
    Adding format arguments to some sprintf
---
 cgx_2.10/src/cgx.c      | 2 +-
 cgx_2.10/src/dataMesh.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cgx_2.10/src/cgx.c b/cgx_2.10/src/cgx.c
index d9684ae..dbccaa8 100644
--- a/cgx_2.10/src/cgx.c
+++ b/cgx_2.10/src/cgx.c
@@ -2305,7 +2305,7 @@ void ConfigureAndShowWindow_Vector( void )
   for(n=0; n<dsSequence.nds; n++)
   {
     i=dsSequence.ds[n];
-    if(v_dim==4) sprintf(lcase[lcase_animList].compName[n], lcase[i].compName[cur_entity]);
+    if(v_dim==4) sprintf(lcase[lcase_animList].compName[n], "%s", lcase[i].compName[cur_entity]);
     else 
     {
       if(v_dim==3) sprintf(lcase[lcase_animList].compName[n], "v(%s,%s,%s)", lcase[i].compName[entity_v[0]], lcase[i].compName[entity_v[1]], lcase[i].compName[entity_v[2]]);
diff --git a/cgx_2.10/src/dataMesh.c b/cgx_2.10/src/dataMesh.c
index b342b12..8bb103a 100644
--- a/cgx_2.10/src/dataMesh.c
+++ b/cgx_2.10/src/dataMesh.c
@@ -2089,7 +2089,7 @@ void calcSequence( DsSequence dsSequence, double anim_faktor, int halfperiode, i
   {
     lcv=dsSequence.ds[s];
     printf (" disp-list:%d ds:%d time:%lf text:%s\n", l+1, lcv+1, lcase[lcv].value, lcase[lcv].dataset_text );
-    sprintf(lcase[lcase_animList].compName[s], lcase[lcv].compName[cur_entity]);
+    sprintf(lcase[lcase_animList].compName[s], "%s", lcase[lcv].compName[cur_entity]);
 
     /* if the selected lc is not a disp lc, search a related disp lc */
     foundDisp=0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/calculix-cgx.git



More information about the debian-science-commits mailing list