Skip to content

Commit

Permalink
remove deprected sscanf
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgRod committed Jan 12, 2025
1 parent 9a4c0b8 commit d1155d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SwelvyBG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bool SwelvyBG::init(float widthmult, float hightmult, float minspeed, float maxs
if (enableColor) {
auto colorSetting = mod->getSettingValue<std::string>("color");
if (!colorSetting.empty()) {
sscanf(colorSetting.c_str(), "%hhu,%hhu,%hhu", &colorOffset.r, &colorOffset.g, &colorOffset.b);
sscanf_s(colorSetting.c_str(), "%hhu,%hhu,%hhu", &colorOffset.r, &colorOffset.g, &colorOffset.b);
}
}
}
Expand Down

0 comments on commit d1155d0

Please sign in to comment.