| 170 | } |
| 171 | |
| 172 | static char *activation_string_copy(const char *value) { |
| 173 | if (!value) { |
| 174 | return NULL; |
| 175 | } |
| 176 | size_t length = strlen(value); |
| 177 | char *copy = malloc(length + 1U); |
| 178 | if (copy) { |
| 179 | memcpy(copy, value, length + 1U); |
| 180 | } |
| 181 | return copy; |
| 182 | } |
| 183 | |
| 184 | static char *activation_string_span(const char *value, size_t length) { |
| 185 | char *copy = malloc(length + 1U); |
no outgoing calls
no test coverage detected