summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unrar/patches/patch-aa')
-rw-r--r--archivers/unrar/patches/patch-aa75
1 files changed, 29 insertions, 46 deletions
diff --git a/archivers/unrar/patches/patch-aa b/archivers/unrar/patches/patch-aa
index 17090836c74..c12ed4cba90 100644
--- a/archivers/unrar/patches/patch-aa
+++ b/archivers/unrar/patches/patch-aa
@@ -1,47 +1,30 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:35:51 agc Exp $
+$NetBSD: patch-aa,v 1.3 1999/05/22 21:41:44 tv Exp $
-*** smallfn.c.bak Mon May 19 23:58:11 1997
---- smallfn.c Tue May 20 00:19:28 1997
-***************
-*** 92,99 ****
- }
- if (Choice==4)
- {
- mprintf(MAskNewName);
-! gets(Name);
- continue;
- }
- if (Choice==5)
---- 92,103 ----
- }
- if (Choice==4)
- {
-+ char *s;
- mprintf(MAskNewName);
-! *Name = '\0';
-! fgets(Name, NM, stdin);
-! if ((s = strchr(Name, '\n')) != NULL)
-! *s = '\0';
- continue;
- }
- if (Choice==5)
-***************
-*** 110,116 ****
- int GetKey(void)
- {
- char Str[80];
-! gets(Str);
- return(Str[0]);
- }
-
---- 114,123 ----
- int GetKey(void)
- {
- char Str[80];
-! *Str = '\0';
-! fgets(Str, 80, stdin);
-! if (*Str == '\n')
-! *Str = '\0';
- return(Str[0]);
- }
-
+--- smallfn.c.orig Sat Apr 17 10:53:02 1999
++++ smallfn.c Sat May 22 17:38:30 1999
+@@ -92,8 +92,12 @@
+ }
+ if (Choice==4)
+ {
++ char *s;
+ mprintf(MAskNewName);
+- gets(Name);
++ *Name = '\0';
++ fgets(Name, NM, stdin);
++ if ((s = strchr(Name, '\n')) != NULL)
++ *s = '\0';
+ continue;
+ }
+ if (Choice==5)
+@@ -110,7 +114,10 @@
+ int GetKey(void)
+ {
+ char Str[80];
+- gets(Str);
++ *Str = '\0';
++ fgets(Str, 80, stdin);
++ if (*Str == '\n')
++ *Str = '\0';
+ return(Str[0]);
+ }
+