mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
fixed the compiler warning on buffer size
This commit is contained in:
parent
d3662a935d
commit
90da020a51
@ -510,7 +510,7 @@ namespace conformal {
|
|||||||
xpos = bwidth * (extra_line_steps - bonus);
|
xpos = bwidth * (extra_line_steps - bonus);
|
||||||
|
|
||||||
if(xpos+bwidth > bandsegment) {
|
if(xpos+bwidth > bandsegment) {
|
||||||
char buf[128];
|
char buf[154];
|
||||||
sprintf(buf, "bandmodel-%s-%03d" IMAGEEXT, timebuf, segid++);
|
sprintf(buf, "bandmodel-%s-%03d" IMAGEEXT, timebuf, segid++);
|
||||||
|
|
||||||
IMAGESAVE(band, buf);
|
IMAGESAVE(band, buf);
|
||||||
@ -533,7 +533,7 @@ namespace conformal {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char buf[128];
|
char buf[154];
|
||||||
sprintf(buf, "bandmodel-%s-%03d" IMAGEEXT, timebuf, segid++);
|
sprintf(buf, "bandmodel-%s-%03d" IMAGEEXT, timebuf, segid++);
|
||||||
IMAGESAVE(band, buf);
|
IMAGESAVE(band, buf);
|
||||||
addMessage(XLAT("Saved the band image as: ") + buf);
|
addMessage(XLAT("Saved the band image as: ") + buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user