diff options
author | tv <tv> | 1999-05-22 21:41:44 +0000 |
---|---|---|
committer | tv <tv> | 1999-05-22 21:41:44 +0000 |
commit | 60e41a0713253823c1d80409d52ca84189597966 (patch) | |
tree | 1093759b3b9fe001c0a76333af5f4343284fe31a /archivers/unrar/patches/patch-aa | |
parent | ba84f7f870df034a70f0a8a9c447a03a659beb5c (diff) | |
download | pkgsrc-60e41a0713253823c1d80409d52ca84189597966.tar.gz |
Update to 2.50, clean up a bit.
Diffstat (limited to 'archivers/unrar/patches/patch-aa')
-rw-r--r-- | archivers/unrar/patches/patch-aa | 75 |
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]); + } + |