You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `space()` method assumes that the string is null termianted, and so
it always returns `_alloc - 1`. When not null terminated, the space
should return the full `_alloc`.
This PR assumes PR #1429 is correct and has been merged.
Fixes#1426
The current implementation of
String.space
is:_alloc - 1
This assumes that
_alloc
will always be greater than_size
, resulting in faulty output.For example:
Output:
The text was updated successfully, but these errors were encountered: