Skip to content

Commit a926a64

Browse files
committed
fix: remove strlen
1 parent 4f86f59 commit a926a64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎stdrot.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void execute_func_call(const String func_name, ArgumentList *args)
346346
if (result.val.str.data && result.val.str.data != dst) {
347347

348348
size_t max = var->array_length - 1;
349-
size_t n = strlen(result.val.str.data);
349+
size_t n = result.val.str.len;
350350

351351
if (n > max) n = max;
352352

0 commit comments

Comments
 (0)