summaryrefslogtreecommitdiff
path: root/archivers/hpack/patches
diff options
context:
space:
mode:
authorwiz <wiz>2001-09-14 15:03:10 +0000
committerwiz <wiz>2001-09-14 15:03:10 +0000
commitb0a6e4b1a715b6ddde417aea944d92b4eade798b (patch)
treeb5cc49b3075122873062162d7d3fe080842d84aa /archivers/hpack/patches
parent5c036d1035eabf191526c61984f7b62b0499b137 (diff)
downloadpkgsrc-b0a6e4b1a715b6ddde417aea944d92b4eade798b.tar.gz
Replace gets(3) by fgets(3). Patches by Don Yuniskis in pkg/13896.
Diffstat (limited to 'archivers/hpack/patches')
-rw-r--r--archivers/hpack/patches/patch-ac15
-rw-r--r--archivers/hpack/patches/patch-ah13
2 files changed, 25 insertions, 3 deletions
diff --git a/archivers/hpack/patches/patch-ac b/archivers/hpack/patches/patch-ac
index d0444f3bce3..6ebcfc7ead0 100644
--- a/archivers/hpack/patches/patch-ac
+++ b/archivers/hpack/patches/patch-ac
@@ -1,7 +1,16 @@
-$NetBSD: patch-ac,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
+$NetBSD: patch-ac,v 1.2 2001/09/14 15:03:11 wiz Exp $
---- keycvt/keycvt.c.orig Fri Aug 13 16:06:28 1993
-+++ keycvt/keycvt.c Sun May 23 17:36:39 1999
+--- keycvt/keycvt.c.orig Fri Aug 13 22:06:28 1993
++++ keycvt/keycvt.c
+@@ -586,7 +586,7 @@
+ puts( "Warning: Password will be echoed to screen!" );
+ printf( "Password: " );
+ fflush( stdout );
+- gets( password );
++ fgets( password, sizeof(password), stdin );
+ }
+
+ void initCrypt( void )
@@ -1034,13 +1034,17 @@
tempFileName[ pathLen++ ] = '/';
strcat( tempFileName, "randseed.bin" );
diff --git a/archivers/hpack/patches/patch-ah b/archivers/hpack/patches/patch-ah
new file mode 100644
index 00000000000..17445d55a02
--- /dev/null
+++ b/archivers/hpack/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1 2001/09/14 15:03:11 wiz Exp $
+
+--- archive.c.orig Tue Jun 29 12:27:52 1993
++++ archive.c
+@@ -331,7 +331,7 @@
+ /* Nasty input routine - should check for illegal chars and suchlike.
+ Will also overflow if anyone enters more than 16K chars */
+ hflush( stdout );
+- hgets( ( char * ) mrglBuffer );
++ fgets( ( char * ) mrglBuffer, MAX_PATH, stdin );
+ mrglBuffer[ MAX_PATH - 1 ] = '\0';
+ strcpy( fileName, ( char * ) mrglBuffer );
+