aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorozan yigit <ozan.yigit@gmail.com>2023-10-30 19:59:11 -0400
committerozan yigit <ozan.yigit@gmail.com>2023-10-30 19:59:11 -0400
commit2a3ee1c2e3e1ea6477ca8715bf1531dbf34367a1 (patch)
tree7974d53006b17abcf245862ee071213707c94350
parent28d4561613bceda26f93833333cdd3317d416243 (diff)
parentc7361cd72fa0032855b87f2a092cda0c750feb5a (diff)
downloadone-true-awk-2a3ee1c2e3e1ea6477ca8715bf1531dbf34367a1.tar.gz
Merge branch 'millert-substr_overflow' into staging
-rw-r--r--run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run.c b/run.c
index bbf149c..a9ef242 100644
--- a/run.c
+++ b/run.c
@@ -985,7 +985,7 @@ Cell *substr(Node **a, int nnn) /* substr(a[0], a[1], a[2]) */
if (a[2] != NULL)
z = execute(a[2]);
s = getsval(x);
- k = strlen(s) + 1;
+ k = u8_strlen(s) + 1;
if (k <= 1) {
tempfree(x);
tempfree(y);