summaryrefslogtreecommitdiffstats
path: root/security/bcwipe
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-06-07 00:28:08 +0000
committerkris <kris@FreeBSD.org>2002-06-07 00:28:08 +0000
commitec2624bd575f16341d52a41c5caa706c137c4023 (patch)
tree03d3ac554beaed3e23bd8cf17cf0ea01ef47bc8a /security/bcwipe
parenta4ec76034c1d6f4df60a3a8c2bad6692cea73547 (diff)
downloadFreeBSD-ports-ec2624bd575f16341d52a41c5caa706c137c4023.zip
FreeBSD-ports-ec2624bd575f16341d52a41c5caa706c137c4023.tar.gz
Fix a couple of non-exploitable format string bugs
Diffstat (limited to 'security/bcwipe')
-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 0000000..5130be3
--- /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;
OpenPOWER on IntegriCloud