fix(IOB): EOF does not overwrite last char anymore
This commit is contained in:
parent
03e5305b56
commit
39ca927c06
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ ssize_t stream_read(char **stream)
|
|||
*stream = context.args;
|
||||
size_t len = strlen(context.args);
|
||||
context.args[len] = EOF;
|
||||
return len;
|
||||
return len + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue