[Pkg-electronics-commits] [gplcver] 13/18: String format security fix

أحمد المحمودي (Ahmed El-Mahmoudy) aelmahmoudy at sabily.org
Thu Mar 26 12:16:19 UTC 2015


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

aelmahmoudy-guest pushed a commit to branch master
in repository gplcver.

commit 23d3dc299cca600b8031362c44a70cd01109f965
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
Date:   Thu Mar 26 12:35:26 2015 +0200

    String format security fix
---
 src/v_ex4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/v_ex4.c b/src/v_ex4.c
index 4375ee0..18cb857 100644
--- a/src/v_ex4.c
+++ b/src/v_ex4.c
@@ -4158,7 +4158,7 @@ extern char *__bld_showvars_prefix(char *s, struct net_t *np,
  if (np->n_isavec && np->ntyp != N_INT && np->ntyp != N_TIME
   && np->ntyp != N_REAL) sprintf(s2, " %s", __to_wrange(s3, np));
  else strcpy(s2, "");
- if (np->n_isarr) sprintf(s4, __to_arr_range(s3, np)); else strcpy(s4, "");
+ if (np->n_isarr) sprintf(s4, "%s", __to_arr_range(s3, np)); else strcpy(s4, "");
 
  /* if xmr form must emit path given as arg */
  if (grp == NULL) __schop(s3, np->nsym->synam); else __schop(s3, grp->gnam); 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gplcver.git



More information about the Pkg-electronics-commits mailing list