lldb is telling me line 3 is causing a segfault. how do i fix this
target = malloc(sizeof(char) * (strchr(makefile_line, ':') - makefile_line));
strncpy(target, makefile_line, strchr(makefile_line, ':') - makefile_line - 1);
target[strchr(makefile_line, ':') - makefile_line - 1] = '\0';