aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-06-07 00:28:08 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-06-07 00:28:08 +0000
commit9c400a4b6ddad91655297a5bfe7c2562889fb305 (patch)
tree2bebe9023d5e478da8d1a8df8bfe9a4b777a23ec /security
parente19274c46cf4f6e58f2e2476d8d0110bd90f6fd0 (diff)
downloadports-9c400a4b6ddad91655297a5bfe7c2562889fb305.tar.gz
ports-9c400a4b6ddad91655297a5bfe7c2562889fb305.zip
Fix a couple of non-exploitable format string bugs
Notes
Notes: svn path=/head/; revision=60739
Diffstat (limited to 'security')
-rw-r--r--security/bcwipe/files/patch-aa29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/bcwipe/files/patch-aa b/security/bcwipe/files/patch-aa
new file mode 100644
index 000000000000..5130be390cee
--- /dev/null
+++ b/security/bcwipe/files/patch-aa
@@ -0,0 +1,29 @@
+--- wipe.c.orig Thu Jun 6 17:25:28 2002
++++ wipe.c Thu Jun 6 17:26:36 2002
+@@ -66,7 +66,7 @@
+ int ask_y_n(char *string)
+ {
+ char c;
+- fprintf(stderr,string);
++ fprintf(stderr,"%s",string);
+ c = tolower(fgetc(stdin));
+ if ( '\n' == c ) return FALSE;
+ while ( '\n' != fgetc(stdin) );
+@@ -675,7 +675,7 @@
+ case '?':
+ case 'h':
+ default:
+- fprintf(stdout,usage_string);
++ fprintf(stdout,"%s",usage_string);
+ exit(0);
+ } /* end of switch */
+ } /* end of while */
+@@ -685,7 +685,7 @@
+
+ if ( 0 == argc )
+ {
+- fprintf(stdout,usage_string);
++ fprintf(stdout,"%s",usage_string);
+ exit(0);
+ }
+ if ( o_force ) o_interactive=FALSE;