patch-Wnn_manual_v3tov4_v3tov4 509 B

12345678910111213
  1. $OpenBSD: patch-Wnn_manual_v3tov4_v3tov4,v 1.1 2014/03/23 17:22:45 espie Exp $
  2. --- Wnn/manual/v3tov4/v3tov4.orig Sun Mar 23 18:11:39 2014
  3. +++ Wnn/manual/v3tov4/v3tov4 Sun Mar 23 18:11:48 2014
  4. @@ -547,7 +547,7 @@ henkan()
  5. for(;;){
  6. if(c_env == env){printf("yomi> ");fflush(stdout);}
  7. else {printf("kanji> ");fflush(stdout);}
  8. - if(gets(yomi) == NULL)return;
  9. + if(fgets(yomi, sizeof yomi, stdin) == NULL)return;
  10. if(yomi[0] == '!')return;
  11. if(yomi[0] == '@'){
  12. c_env = (c_env == env)? rev_env:env;