mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #12305 from SuperSamus/expr-buffer-size
expr: increase size of `varname`
This commit is contained in:
commit
ab76b15e05
2
Externals/expr/include/expr.h
vendored
2
Externals/expr/include/expr.h
vendored
@ -783,7 +783,7 @@ static struct expr *expr_create(const char *s, size_t len,
|
||||
struct expr *p = &root;
|
||||
/* Assign macro parameters */
|
||||
for (int j = 0; j < vec_len(&arg.args); j++) {
|
||||
char varname[12];
|
||||
char varname[13];
|
||||
snprintf(varname, sizeof(varname), "$%d", (j + 1));
|
||||
struct expr_var *v = expr_get_var(vars, varname, strlen(varname));
|
||||
struct expr ev = expr_varref(v);
|
||||
|
Loading…
Reference in New Issue
Block a user