mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-01 03:08:14 +03:00
Fix buffer overrun in LE/QE command
This commit is contained in:
@@ -50,6 +50,9 @@ extern double longVar[];
|
||||
static inline int *v_resolveRef(struct VarRef *r) {
|
||||
return varPage[r->page].value + r->index;
|
||||
}
|
||||
static inline int v_sliceSize(struct VarRef *r) {
|
||||
return varPage[r->page].size - r->index;
|
||||
}
|
||||
|
||||
const char *v_name(int var);
|
||||
int *v_ref_indexed(int var, int index, struct VarRef *ref);
|
||||
|
||||
Reference in New Issue
Block a user