fix wrong null terminator assertion
This commit is contained in:
parent
33c8f0b841
commit
3d8c20f5c3
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ Str_to_c(Str s)
|
|||
{
|
||||
if (s.len == 0 || s.s == nil)
|
||||
return nil;
|
||||
Assert(s.s[s.len - 1] == '\0');
|
||||
Assert(s.s[s.len] == '\0');
|
||||
return (char *)s.s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue