Fix buffer sizes

This commit is contained in:
2026-03-17 18:45:16 +11:00
parent 832c6c7bf9
commit 76f342adf8

View File

@@ -1183,11 +1183,11 @@ GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scop
char buf[256];
switch (value->type) {
case INT: {
snprintf(buf, sizeof(buf) * 256, "%" PRId64, value->data.intVal);
snprintf(buf, sizeof(buf), "%" PRId64, value->data.intVal);
break;
}
case DOUBLE: {
snprintf(buf, sizeof(buf) * 256, "%f", value->data.doubleVal);
snprintf(buf, sizeof(buf), "%f", value->data.doubleVal);
break;
}
case STRING: {