Skip to content

Common: Fix GetWorkingDirectory on unix#5164

Merged
refractionpcsx2 merged 1 commit into
PCSX2:masterfrom
TellowKrinkle:FixGetCWD
Dec 23, 2021
Merged

Common: Fix GetWorkingDirectory on unix#5164
refractionpcsx2 merged 1 commit into
PCSX2:masterfrom
TellowKrinkle:FixGetCWD

Conversation

@TellowKrinkle
Copy link
Copy Markdown
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
Copy Markdown

I can confirm this fixes the issue.

Comment thread common/FileSystem.cpp Outdated
@refractionpcsx2 refractionpcsx2 merged commit ea25f49 into PCSX2:master Dec 23, 2021
@TellowKrinkle TellowKrinkle deleted the FixGetCWD branch December 23, 2021 07:49
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