1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed the compiler warning on buffer size

This commit is contained in:
Zeno Rogue 2018-06-07 13:58:14 +02:00
parent d3662a935d
commit 90da020a51

View File

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