mirror of
https://github.com/cy384/ssheven.git
synced 2026-10-23 08:07:20 -06:00
[PR #36] [MERGED] address crash on reading preferences #36
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
question
upkeep
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github-starred/ssheven#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cy384/ssheven/pull/36
Author: @dragorn
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/26/2026
Merged by: @cy384
Base:
master← Head:master📝 Commits (6)
c8ce01dstrings must be null terminated before sscanf; should help with crash on71613ffattempt to fix networking going into a lockup spiral when the server83fcc52handle cstring/pstring conversion better so that there is always room880b35aupdate comments in ssheaven.h for accuracy806ac1cupdate preferences file with the version that wrote the prefs, not the05b8549change c++ nullptr to pure-c NULL📊 Changes
3 files changed (+79 additions, -23 deletions)
View changed files
📝
ssheven-net.c(+42 -9)📝
ssheven.c(+31 -9)📝
ssheven.h(+6 -5)📄 Description
C strings need to be null terminated before calling sscanf & other string functions; the buffer read from the preferences file wasn't explicitly terminated, which could lead to string functions losing their minds when scanning for the prefs vars.
This just ensures the last byte after the read data is null. It's at least "more correct" and fixed the system lockup on 68k for me, but may not be the total solution.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.