summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches/patch-ab
blob: 3db71f0a95caf015f894e8d3fb2b99cd5daa55b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ab,v 1.2 1998/08/07 10:35:51 agc Exp $

*** 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';
  }