Artifact

static int create_placeholder_file (...) { ... struct delayed_link *p = xmalloc(offsetof(struct delayed_link, target) + strlen(current_stat_info.link_name) + 1); p->sources = xmalloc(offsetof(struct string_list, string) + strlen(file_name) + 1); ... strcpy (p->sources->string, file_name); ... strcpy (p->target, current_stat_info.link_name); }

8e24ac02-d03f-404a-9029-1e3e01bef40c

static int create_placeholder_file (...) { ... struct delayed_link *p = xmalloc(offsetof(struct delayed_link, target) + strlen(current_stat_info.link_name) + 1); p->sources = xmalloc(offsetof(struct string_list, string) + strlen(file_name) + 1); ... strcpy (p->sources->string, file_name); ... strcpy (p->target, current_stat_info.link_name); }