Skip to content

Commit c17656d

Browse files
committed
fixup! Update src/string_array.c
1 parent efbd842 commit c17656d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_array.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ rcutils_string_array_resize(
162162
// rcutils_string_array_init should have already set an error message
163163
return ret;
164164
}
165-
memcpy(to_reclaim.data, string_array->data[new_size], to_reclaim.size);
165+
memcpy(to_reclaim.data, &string_array->data[new_size], to_reclaim.size);
166166
}
167167

168168
char ** new_data = allocator->reallocate(

0 commit comments

Comments
 (0)