1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/japanese/typist/files/patch-ab

19 lines
408 B
Plaintext

*** 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++) ;