summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches/patch-ab
blob: 4cf98c0389da92b582a051b6693c2ad37f30b191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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';
  }