Skip to content

Commit 84766ee

Browse files
authored
Merge pull request #9 from AXIS5hacker/1.2_XmlDoctor
fix a bug in main.cpp
2 parents 8d3df49 + 047ae74 commit 84766ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dynamix_chart_width_control/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ int main(int argc, char* argv[])
250250
istr >> new_barpm;
251251
}
252252
char new_barpm_string[64];
253-
sprintf_s(new_barpm_string, "%f", new_barpm);
253+
snprintf(new_barpm_string, sizeof(new_barpm_string), "%f", new_barpm);
254254
cs.set_barpm(new_barpm);
255255
cout << "Barpm is set to " + string(new_barpm_string) + "." << endl;
256256
cout << "===============================" << endl;

0 commit comments

Comments
 (0)