Skip to content

Commit

Permalink
Merge pull request #112 from intelops/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
c-ravela authored Mar 28, 2024
2 parents 159f866 + 36a48d9 commit d4af10c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tarian/c/utils/shared/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ stain int write_str_arr(uint8_t *buf, uint64_t *pos, u64 reserved_space, char **
if (arg_len <= 0)
break;

total_len += arg_len;
*pos += arg_len & (MAX_STRING_SIZE - 1);
total_len += arg_len - 1 /* exclude '\0' from length */ ;
*pos += (arg_len - 1) & (MAX_STRING_SIZE - 1);
}

total_len = total_len & (MAX_STRING_SIZE - 1);
Expand Down
Binary file modified tarian/tarian_x86_bpfel.o
Binary file not shown.

0 comments on commit d4af10c

Please sign in to comment.