fix: compiling but not working -- need debug
This commit is contained in:
parent
1eecb1bd42
commit
04529f858c
4 changed files with 11 additions and 3 deletions
|
|
@ -96,7 +96,9 @@ ssize_t stream_read(char **stream)
|
|||
else if (context.mode == IOB_MODE_CMD)
|
||||
{
|
||||
*stream = context.args;
|
||||
return strlen(context.args);
|
||||
size_t len = strlen(context.args);
|
||||
context.args[len] = EOF;
|
||||
return len;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue