Skip to content

Commit d1155d0

Browse files
committed
remove deprected sscanf
1 parent 9a4c0b8 commit d1155d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SwelvyBG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bool SwelvyBG::init(float widthmult, float hightmult, float minspeed, float maxs
3131
if (enableColor) {
3232
auto colorSetting = mod->getSettingValue<std::string>("color");
3333
if (!colorSetting.empty()) {
34-
sscanf(colorSetting.c_str(), "%hhu,%hhu,%hhu", &colorOffset.r, &colorOffset.g, &colorOffset.b);
34+
sscanf_s(colorSetting.c_str(), "%hhu,%hhu,%hhu", &colorOffset.r, &colorOffset.g, &colorOffset.b);
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)