Skip to content

Small change to allow replayfiles to be stored in one specific folder, and a security fix#20

Open
cormacj wants to merge 5 commits intoDavidebyzero:masterfrom
cormacj:master
Open

Small change to allow replayfiles to be stored in one specific folder, and a security fix#20
cormacj wants to merge 5 commits intoDavidebyzero:masterfrom
cormacj:master

Conversation

@cormacj
Copy link
Copy Markdown

@cormacj cormacj commented Jan 23, 2026

This change add an option to allow SnipesGamesFiles to be stored in a specific folder. I added this because I tend to start snipes without checking what folder I'm in. This allows the files to be stored in one place.

I've also updated the filename generation code to use snprintf instead of sprintf to reduce the risk of a buffer overflow if someone supplies too long a folder name.

Comment thread config-sample.h Outdated
Comment thread Snipes.cpp Outdated
@cormacj
Copy link
Copy Markdown
Author

cormacj commented Jan 24, 2026

I've updated the PR to reflect the suggested changes,

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.

3 participants