Skip to content
Snippets Groups Projects

fix some issues with supername code

Merged candelavla requested to merge pastel/SRB2:supernamefix into next
  1. Apparently on builds using FORTIFY_SOURCE the game would SIGABRT on the line strcpy(someone, skin->realname); despite both someone and realname buffers being SKINNAMESIZE+1 sized. I replaced it with one string the same size as supername and used strlcat instead so that should hopefully no longer happen.

  2. There was a misplaced else that could cause supername to never have the skin name copied over it if hudname and realname were both not supplied. Wouldn't crash but would display the failsafe "someone super" instead. Now it should display the skin name as intended.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading