1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 14:38:51 -05:00

buffer overflow fix

This commit is contained in:
Evan Pezent 2021-09-07 21:46:54 -07:00
parent c40206f2ea
commit dea3387cdc

View File

@ -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)