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

Common: Fix GetWorkingDirectory on unix #5164

Merged
merged 1 commit into from Dec 23, 2021

Conversation

TellowKrinkle
Copy link
Member

Description of Changes

Fixes an issue where GetWorkingDirectory would return a std::string containing null characters at the end
Fixes #5163

Rationale behind Changes

When you concatenated those strings with other strings, the null characters would make most C utilities not notice the concatenation

Suggested Testing Steps

Attempt to make a block dump in Linux

@HeroponRikiBestest
Copy link

I can confirm this fixes the issue.

common/FileSystem.cpp Outdated Show resolved Hide resolved
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.

[BUG]: Blockdumps do not work in Linux when built from source or using Appimage
5 participants