Artifact
static bool append_type (struct pr_handle *info, const char *s) { unsigned int len; len = strlen (info->stack->type); info->stack->type = (char *) xrealloc (info->stack->type, len + strlen (s) + 1); strcpy (info->stack->type + len, s); return true; } static bool substitute_type (struct pr_handle *info, const char *s) { char *u = strchr (info->stack->type, '|'); if (u != NULL) { n = (char *) xmalloc (strlen (info->stack->type) + strlen (s)); memcpy (n, info->stack->type, u - info->stack->type); strcpy (n + (u - info->stack->type), s); strcat (n, u + 1); ... } }
f55c26a4-35ed-47e4-9bee-9092ea8b6e2d
static bool append_type (struct pr_handle *info, const char *s) { unsigned int len; len = strlen (info->stack->type); info->stack->type = (char *) xrealloc (info->stack->type, len + strlen (s) + 1); strcpy (info->stack->type + len, s); return true; }
static bool substitute_type (struct pr_handle *info, const char *s) { char *u = strchr (info->stack->type, '|'); if (u != NULL) { n = (char *) xmalloc (strlen (info->stack->type) + strlen (s)); memcpy (n, info->stack->type, u - info->stack->type); strcpy (n + (u - info->stack->type), s); strcat (n, u + 1); ... } }