| 182 | } |
| 183 | |
| 184 | static char *activation_string_span(const char *value, size_t length) { |
| 185 | char *copy = malloc(length + 1U); |
| 186 | if (copy) { |
| 187 | memcpy(copy, value, length); |
| 188 | copy[length] = '\0'; |
| 189 | } |
| 190 | return copy; |
| 191 | } |
| 192 | |
| 193 | static bool activation_target_parts(const char *target_path, char **directory_out, |
| 194 | char **name_out) { |
no outgoing calls
no test coverage detected