X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.c;h=f65a2a5e70aaabd347b0a44ce0920b63238a1080;hp=d35b2556ae1407f297b0088838a2c5124b1140c0;hb=a6c062d033c2cf9be1eb9e1164de84ba45379681;hpb=25f221b092e0e9d85aa5d3e6863043f2ab4d7c43 diff --git a/sst.c b/sst.c index d35b255..f65a2a5 100644 --- a/sst.c +++ b/sst.c @@ -478,7 +478,7 @@ int scan(void) { chew(); return IHEOL; } - fgets(line, sizeof(line), stdin); + getline(line, sizeof(line)); line[strlen(line)-1] = '\0'; linep = line; }