mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 19:28:47 +00:00
Fixed bug in LreadLine
This commit is contained in:
parent
21a52fd58f
commit
fe963a15d7
2 changed files with 3 additions and 1 deletions
|
|
@ -1238,6 +1238,8 @@ extern void* LreadLine () {
|
|||
|
||||
if (scanf ("%m[^\n]", &buf) == 1) {
|
||||
void * s = Bstring (buf);
|
||||
|
||||
getchar ();
|
||||
|
||||
free (buf);
|
||||
return s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue