Skip to content

Commit

Permalink
buffer overflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
epezent committed Sep 8, 2021
1 parent c40206f commit dea3387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implot_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ void ShowDemo_SubplotsSizing() {
if (ImPlot::BeginSubplots("My Subplots", rows, cols, ImVec2(-1,400), flags, rratios, cratios)) {
for (int i = 0; i < rows*cols; ++i) {
if (ImPlot::BeginPlot("",NULL,NULL,ImVec2(),ImPlotFlags_NoLegend,ImPlotAxisFlags_NoTickLabels,ImPlotAxisFlags_NoTickLabels)) {
char buffer[8];
char buffer[16];
float fi = 0.01f * (i+1);
sprintf(buffer, "data%d", i);
if (i == 0)
Expand Down

0 comments on commit dea3387

Please sign in to comment.