summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1997-10-27 02:18:56 +0000
committerhubertf <hubertf@pkgsrc.org>1997-10-27 02:18:56 +0000
commit8b564b5192b294067cb0130be5d93572a73a8d50 (patch)
treeaa7fd087d6bcf69328ebc37067c429ed69a80a4c /archivers/unrar/patches
parent78879a265da1d7043bcd319b2f1b34fb6177b5de (diff)
downloadpkgsrc-8b564b5192b294067cb0130be5d93572a73a8d50.tar.gz
File archivers, ports from FreeBSD
Diffstat (limited to 'archivers/unrar/patches')
-rw-r--r--archivers/unrar/patches/patch-aa45
-rw-r--r--archivers/unrar/patches/patch-ab23
2 files changed, 68 insertions, 0 deletions
diff --git a/archivers/unrar/patches/patch-aa b/archivers/unrar/patches/patch-aa
new file mode 100644
index 00000000000..f82d2fc0247
--- /dev/null
+++ b/archivers/unrar/patches/patch-aa
@@ -0,0 +1,45 @@
+*** 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]);
+ }
+
diff --git a/archivers/unrar/patches/patch-ab b/archivers/unrar/patches/patch-ab
new file mode 100644
index 00000000000..4cf98c0389d
--- /dev/null
+++ b/archivers/unrar/patches/patch-ab
@@ -0,0 +1,23 @@
+*** os.c.bak Mon May 19 23:58:11 1997
+--- os.c Tue May 20 00:22:57 1997
+***************
+*** 67,73 ****
+
+ void GetPswStr(char *Str)
+ {
+! gets(Str);
+ }
+
+
+--- 67,77 ----
+
+ void GetPswStr(char *Str)
+ {
+! char *s;
+! *Str = '\0';
+! fgets(Str, 128, stdin);
+! if ((s = strchr(Str, '\n')) != NULL)
+! *s = '\0';
+ }
+
+