mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 08:28:36 +02:00
Fix 1 more warning reported by GCC
We don't write in correct buffer size in analyze_block
This commit is contained in:
parent
b32f36bf34
commit
b2977e7691
@ -971,8 +971,8 @@ std::string analyze_block(MapBlock *block)
|
|||||||
std::ostringstream desc;
|
std::ostringstream desc;
|
||||||
|
|
||||||
v3s16 p = block->getPos();
|
v3s16 p = block->getPos();
|
||||||
char spos[20];
|
char spos[25];
|
||||||
snprintf(spos, 20, "(%2d,%2d,%2d), ", p.X, p.Y, p.Z);
|
snprintf(spos, sizeof(spos), "(%2d,%2d,%2d), ", p.X, p.Y, p.Z);
|
||||||
desc<<spos;
|
desc<<spos;
|
||||||
|
|
||||||
switch(block->getModified())
|
switch(block->getModified())
|
||||||
|
Loading…
Reference in New Issue
Block a user