Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible buffer overrun on Audio signal channel string #5

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/groove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ xgroove::xgroove(int argc,const t_atom *argv):
AddInFloat("Starting point"); // min play pos
AddInFloat("Ending point"); // max play pos
for(int ci = 0; ci < outchns; ++ci) {
char tmp[30];
char tmp[32];
STD::sprintf(tmp,"Audio signal channel %i",ci+1);
AddOutSignal(tmp); // output
}
Expand Down
2 changes: 1 addition & 1 deletion source/play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ xplay::xplay(int argc,const t_atom *argv)

AddInSignal("Messages and Signal of playing position"); // pos signal
for(int ci = 0; ci < outchns; ++ci) {
char tmp[60];
char tmp[32];
STD::sprintf(tmp,"Audio signal channel %i",ci+1);
AddOutSignal(tmp);
}
Expand Down