Make 1994/tvr alt code use fgets()
This means that one of the bug statuses was removed.
This commit is contained in:
1 parent
a438eb468f
commit
329e9470be
4 files changed
+5
-12
No files matched your search
+1
-2
@@ -15,7 +15,6 @@ The current status of this entry is:
|
||||
|
||||
```
|
||||
STATUS: known bug - please help us fix
|
||||
STATUS: uses gets() - change to fgets() if possible
|
||||
```
|
||||
|
||||
For more detailed information see [1994 tvr in bugs.md](/bugs.md#1994-tvr).
|
||||
@@ -46,7 +45,7 @@ The author provided us a spoiler version that might be of interest to some.
|
||||
### Alternate build:
|
||||
|
||||
```sh
|
||||
make tvr.alt
|
||||
make alt
|
||||
```
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
#include <X11/Xlib.h>
|
||||
#define M typedef
|
||||
#define gets(B) fgets((B),C-(B)+256,stdin),(B[strlen(B)-1]='\0'),1
|
||||
#define N( a)=r=(a)+j
|
||||
#define S f(; G; )D[B[H=i[--G]]=F+=F<p]++
|
||||
#define f for
|
||||
@@ -60,7 +61,7 @@ K ()
|
||||
_
|
||||
I (d F)
|
||||
{
|
||||
F || gets (F = B);
|
||||
F || (gets (B),F=B);
|
||||
y = atoi (F);
|
||||
}
|
||||
_
|
||||
|
||||
Reference in new issue
Block a user