LibC: Allow "t" in stdio mode
This commit is contained in:
parent
876fbe3d7c
commit
32806a5af3
|
|
@ -169,7 +169,7 @@ static mode_t parse_mode_string(const char* mode_str)
|
||||||
return 0;
|
return 0;
|
||||||
if (len == 3 && mode_str[1] == mode_str[2])
|
if (len == 3 && mode_str[1] == mode_str[2])
|
||||||
return 0;
|
return 0;
|
||||||
if (strspn(mode_str + 1, "b+") != len - 1)
|
if (strspn(mode_str + 1, "tb+") != len - 1)
|
||||||
return 0;
|
return 0;
|
||||||
bool plus = (mode_str[1] == '+' || mode_str[2] == '+');
|
bool plus = (mode_str[1] == '+' || mode_str[2] == '+');
|
||||||
switch (mode_str[0])
|
switch (mode_str[0])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue