Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 23, 2016
Merged

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

merged 2 commits into from
Nov 23, 2016

Conversation

Perelandric
Copy link
Contributor

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 `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`.
@jemc jemc added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Nov 23, 2016
@jemc jemc merged commit a998b0d into ponylang:master Nov 23, 2016
ponylang-main added a commit that referenced this pull request Nov 23, 2016
@Perelandric Perelandric deleted the fix_string_space branch November 24, 2016 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants