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:
parent
c40206f2ea
commit
dea3387cdc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user