Module: kamailio Branch: master Commit: d5b42fca13d2107590f9178c5d7c1a9d765adf73 URL: https://github.com/kamailio/kamailio/commit/d5b42fca13d2107590f9178c5d7c1a9d...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-01-20T11:34:14+01:00
core: snexpr - increase local buffer to avoid compile warning
- GH #3330
---
Modified: src/core/utils/snexpr.h
---
Diff: https://github.com/kamailio/kamailio/commit/d5b42fca13d2107590f9178c5d7c1a9d... Patch: https://github.com/kamailio/kamailio/commit/d5b42fca13d2107590f9178c5d7c1a9d...
---
diff --git a/src/core/utils/snexpr.h b/src/core/utils/snexpr.h index 4fb6e3f3b7..0115a52fd8 100644 --- a/src/core/utils/snexpr.h +++ b/src/core/utils/snexpr.h @@ -1243,7 +1243,7 @@ static struct snexpr *snexpr_create(const char *s, size_t len, int j; /* Assign macro parameters */ for(j = 0; j < sne_vec_len(&arg.args); j++) { - char varname[4]; + char varname[14]; snprintf(varname, sizeof(varname) - 1, "$%d", (j + 1)); struct snexpr_var *v =