elide local patch "replace malloc(strlen())/strlcpy with strdup"