diff options
author | NP-Hardass <NP-Hardass@gentoo.org> | 2017-09-20 18:54:30 -0400 |
---|---|---|
committer | NP-Hardass <NP-Hardass@gentoo.org> | 2017-09-20 19:36:09 -0400 |
commit | 5a8034fff6a4ef923daf2076fa0112108774c9a7 (patch) | |
tree | b16a1b7b049a5a9651bc813f3ea5b5015aa23de6 /net-misc/vde/files/vde-2.3.2-format-security.patch | |
parent | net-misc/networkmanager: bump to 1.8.4 (diff) | |
download | gentoo-5a8034fff6a4ef923daf2076fa0112108774c9a7.tar.gz gentoo-5a8034fff6a4ef923daf2076fa0112108774c9a7.tar.bz2 gentoo-5a8034fff6a4ef923daf2076fa0112108774c9a7.zip |
net-misc/vde: Fix compilation with format-security
Closes: https://bugs.gentoo.org/520306
Bug: https://bugs.gentoo.org/520306
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-misc/vde/files/vde-2.3.2-format-security.patch')
-rw-r--r-- | net-misc/vde/files/vde-2.3.2-format-security.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/vde/files/vde-2.3.2-format-security.patch b/net-misc/vde/files/vde-2.3.2-format-security.patch new file mode 100644 index 000000000000..d1cfaa58cb2f --- /dev/null +++ b/net-misc/vde/files/vde-2.3.2-format-security.patch @@ -0,0 +1,18 @@ +--- a/src/common/cmdparse.c 2017-09-20 18:47:31.662856695 -0400 ++++ b/src/common/cmdparse.c 2017-09-20 18:48:54.008852141 -0400 +@@ -284,13 +284,13 @@ + int i; + for (i=0;i<argc;i++) { + if (i) fprintf(mf," "); +- fprintf(mf,argv[i]); ++ fprintf(mf,"%s",argv[i]); + } + } else { + int num=atoi(t); + while (*t >='0' && *t <= '9') t++; + if (num < argc) +- fprintf(mf,argv[num]); ++ fprintf(mf,"%s",argv[num]); + } + } else + fprintf(mf,"%c",*t); |