aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/typist/files/patch-ab
blob: 36f726502344d9b1e20445e80d953e520d8ba64f (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Return-Path: taoka@infonets.hiroshima-u.ac.jp 
Return-Path: taoka@infonets.hiroshima-u.ac.jp
Received: from shonan.sfc.wide.ad.jp (shonan.sfc.wide.ad.jp [203.178.140.7]) by bourbon.sfc.wide.ad.jp (8.8.5/3.5Wpl104/21/97) with ESMTP id LAA28293 for <max@bourbon.sfc.wide.ad.jp>; Tue, 24 Jun 1997 11:21:48 +0900 (JST)
Received: from sh.wide.ad.jp (sh.wide.ad.jp [133.4.11.11]) by shonan.sfc.wide.ad.jp (8.8.5+2.7Wbeta5/3.3Wb4-shonan) with ESMTP id LAA01566 for <max@sfc.wide.ad.jp>; Tue, 24 Jun 1997 11:24:06 +0900 (JST)
Received: from diana.infonets.hiroshima-u.ac.jp (diana.infonets.hiroshima-u.ac.jp [133.41.33.53]) by sh.wide.ad.jp (8.8.5+2.7Wbeta5/6.0) with ESMTP id LAA14491 for <max@wide.ad.jp>; Tue, 24 Jun 1997 11:24:05 +0900 (JST)
Received: from cal.infonets.hiroshima-u.ac.jp (cal.infonets.hiroshima-u.ac.jp [133.41.33.61]) by diana.infonets.hiroshima-u.ac.jp (8.8.5/3.5Wpl5) with ESMTP id LAA23813 for <max@wide.ad.jp>; Tue, 24 Jun 1997 11:24:04 +0900 (JST)
Received: from cal.infonets.hiroshima-u.ac.jp (localhost.infonets.hiroshima-u.ac.jp [127.0.0.1]) by cal.infonets.hiroshima-u.ac.jp (8.8.5/3.5Wpl5) with ESMTP id LAA05923 for <max@wide.ad.jp>; Tue, 24 Jun 1997 11:24:03 +0900 (JST)
Message-Id: <199706240224.LAA05923@cal.infonets.hiroshima-u.ac.jp>
To: max@wide.ad.jp
Subject: Re: typist copyright
From: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
In-Reply-To: Your message of "Tue, 24 Jun 1997 09:41:37 +0900"
References: <199706240041.JAA27882@bourbon.sfc.wide.ad.jp>
X-Mailer: Mew version 1.70 on Emacs 20.3 "Moscow" XEmacs Lucid (beta6)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Tue, 24 Jun 1997 11:24:03 +0900
Sender: taoka@infonets.hiroshima-u.ac.jp
X-Filter: mailagent [version 3.0 PL56] for max@bourbon.sfc.wide.ad.jp


$BED2,$G$9!%(B

> 
> $B!!$"!"0l$D5$$K$J$C$?E@$G$9$,!"KM$NC<Kv$N@_Dj(B ($B%7%j%"%kC<Kv$G;H$C$F$$$^(B
> $B$9(B) $B$N$;$$$J$N$+$b$7$l$J$$$s$G$9$,!"%*!<%W%K%s%0$N%9%/%j!<%s$N=j$G2~9T(B
> $B%-!<$r2!$7$F$b=*N;$7$F$/$l$^$;$s$G$7$?!#(B 

$B860x$,J,$+$j$^$7$?!%;d$N%_%9$G$9!%(Bpatches/patch-ab$B$rF~$l49$($F$_$F$/$@$5(B
$B$$!%$b$H$b$H(Btypist$B$G$O(Bgets$B$r;H$C$F$$$k$N$G$9$,!$(B

warning: this program uses gets(), which is unsafe.

$B$,$G$k$N$G(Bfgets$B$r;H$&$h$&$KJQ99$7$F$$$?$N$G$9$,!$(Bgets$B$O(B'\n'$B$r:o$k$,!$(B
fgets$B$O(B'\n'$B$O$=$N$^$^BeF~$7$F$$$k$3$H$rCN$j$^$;$s$G$7$?!%B?J,!$$3$l$C$F(B
$BM-L>$JOC$G$7$g$&$M!%(B

 $BED2,(B $BCR;V(B    $B9-EgBg3X9)3XItBhFsN`2sO)%7%9%F%`9)3X(B     Tel: 0824-24-7666 
              $B")(B739 $BEl9-Eg;T6@;30lCzL\(B4-1              Fax: 0824-22-7028 
             taoka@infonets.hiroshima-u.ac.jp                            


*** lesson.c.orig   Sun May 18 14:54:37 1997
--- lesson.c    Tue Jun 24 11:11:21 1997
***************
*** 72,78 ****
--- 72,84 ----
  
      nocbreak();
  
+ #ifdef __FreeBSD__
+     (void)fgets(response,STR_SIZE + 1,stdin);
+     for (lp = response; *lp != '\n'; lp++) ;
+     *lp='\0';
+ #else
      (void)gets(response);
+ #endif
  
      cbreak();
      for (lp = response; *lp == ' ' || *lp == '\t'; lp++) ;