Skip to content

Minor "fixes" to coktel/composer to ensure safety:#204

Merged
mywave82 merged 2 commits into
adplug:masterfrom
mywave82:coktel-warnings
Feb 7, 2024
Merged

Minor "fixes" to coktel/composer to ensure safety:#204
mywave82 merged 2 commits into
adplug:masterfrom
mywave82:coktel-warnings

Conversation

@mywave82

Copy link
Copy Markdown
Contributor
  • Add some assertions to assure that voice does not go beyond limits when mRhythmMode is not set
  • Initialize all variables in the constructor, even if they will be set to known values during rewind()
  • Use strncpy() instead of strcpy()

This is a response to #143

@binarymaster

 * Add some assertions to assure that `voice` does not go beyond limits when mRhythmMode is not set
 * Initialize all variables in the constructor, even if they will be set to known values during rewind()
 * Use strncpy() instead of strcpy()
Comment thread src/composer.cpp Outdated
@mywave82 mywave82 merged commit 7db72f7 into adplug:master Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants