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

Fix fedora #22

Merged
merged 11 commits into from
May 19, 2016
Merged

Fix fedora #22

merged 11 commits into from
May 19, 2016

Conversation

kddnewton
Copy link
Owner

I don't know why this fixes it. For some reason on fedora for characters of size % 16 == 0, this breaks. Even if strncpy is never called.

@@ -58,12 +58,14 @@ static void underscore_preprocess(char* str)

if (str[idx + 1] == '\0') {
underscore_format(substr, substr_idx, 0);
strncpy(str + (idx - substr_idx) + 1, substr, substr_idx);
memcpy(str + (idx - substr_idx) + 1, substr, substr_idx);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe comment this for posterity

@firstmorecoffee
Copy link
Contributor

comments then 👍

@kddnewton kddnewton merged commit aa2d9d9 into master May 19, 2016
@kddnewton kddnewton deleted the fix_fedora branch May 19, 2016 17:35
kddnewton added a commit that referenced this pull request Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants