From 90da020a514a460842c03c4e78d685bae1a9ad0f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 7 Jun 2018 13:58:14 +0200 Subject: [PATCH] fixed the compiler warning on buffer size --- conformal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conformal.cpp b/conformal.cpp index f2ce9d09..6308309a 100644 --- a/conformal.cpp +++ b/conformal.cpp @@ -510,7 +510,7 @@ namespace conformal { xpos = bwidth * (extra_line_steps - bonus); if(xpos+bwidth > bandsegment) { - char buf[128]; + char buf[154]; sprintf(buf, "bandmodel-%s-%03d" IMAGEEXT, timebuf, segid++); IMAGESAVE(band, buf); @@ -533,7 +533,7 @@ namespace conformal { } } - char buf[128]; + char buf[154]; sprintf(buf, "bandmodel-%s-%03d" IMAGEEXT, timebuf, segid++); IMAGESAVE(band, buf); addMessage(XLAT("Saved the band image as: ") + buf);