| 159 | } |
| 160 | |
| 161 | static char *activation_string_copy(const char *value) { |
| 162 | if (!value) { |
| 163 | return NULL; |
| 164 | } |
| 165 | size_t length = strlen(value); |
| 166 | char *copy = malloc(length + 1U); |
| 167 | if (copy) { |
| 168 | memcpy(copy, value, length + 1U); |
| 169 | } |
| 170 | return copy; |
| 171 | } |
| 172 | |
| 173 | static char *activation_string_span(const char *value, size_t length) { |
| 174 | char *copy = malloc(length + 1U); |
no outgoing calls
no test coverage detected