Skip to content

Commit

Permalink
move inside
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Apr 1, 2024
1 parent 802a77b commit d36969c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ struct aws_string *aws_string_new_from_array(struct aws_allocator *allocator, co
AWS_PRECONDITION(allocator);
AWS_PRECONDITION(AWS_MEM_IS_READABLE(bytes, len));

struct aws_string *str = aws_mem_acquire(allocator, offsetof(struct aws_string, bytes[len]) + 1);
struct aws_string *str = aws_mem_acquire(allocator, offsetof(struct aws_string, bytes[len + 1]));
if (!str) {
return NULL;
}
Expand Down

0 comments on commit d36969c

Please sign in to comment.