Make space() check if string is null terminated (issue #1426) (#1430)
Make space() check if string is null terminated (issue #1426) (#1430)

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
mkfifo/ponyc,jupvfranco/ponyc,CausalityLtd/ponyc,jemc/ponyc,Theodus/ponyc,ponylang/ponyc,jemc/ponyc,jupvfranco/ponyc,sgebbie/ponyc,CausalityLtd/ponyc,mkfifo/ponyc,Perelandric/ponyc,Theodus/ponyc,sgebbie/ponyc,kulibali/ponyc,boemmels/ponyc,boemmels/ponyc,boemmels/ponyc,Praetonus/ponyc,jupvfranco/ponyc,Perelandric/ponyc,jupvfranco/ponyc,kulibali/ponyc,ponylang/ponyc,dipinhora/ponyc,Theodus/ponyc,jemc/ponyc,Theodus/ponyc,Praetonus/ponyc,cquinn/ponyc,cquinn/ponyc,ponylang/ponyc,mkfifo/ponyc,CausalityLtd/ponyc,boemmels/ponyc,mkfifo/ponyc,mkfifo/ponyc,dipinhora/ponyc,cquinn/ponyc,sgebbie/ponyc,jupvfranco/ponyc,kulibali/ponyc,Theodus/ponyc,boemmels/ponyc,Praetonus/ponyc,sgebbie/ponyc,Praetonus/ponyc,dipinhora/ponyc,sgebbie/ponyc,cquinn/ponyc,Perelandric/ponyc,kulibali/ponyc,Perelandric/ponyc,Perelandric/ponyc