Fixed bug in LreadLine

This commit is contained in:
Dmitry Boulytchev 2020-02-25 01:19:15 +03:00
parent 21a52fd58f
commit fe963a15d7
2 changed files with 3 additions and 1 deletions

View file

@ -1238,6 +1238,8 @@ extern void* LreadLine () {
if (scanf ("%m[^\n]", &buf) == 1) {
void * s = Bstring (buf);
getchar ();
free (buf);
return s;