| 142 | } |
| 143 | |
| 144 | static char *activation_string_copy(const char *value) { |
| 145 | if (!value) { |
| 146 | return NULL; |
| 147 | } |
| 148 | size_t length = strlen(value); |
| 149 | char *copy = malloc(length + 1U); |
| 150 | if (copy) { |
| 151 | memcpy(copy, value, length + 1U); |
| 152 | } |
| 153 | return copy; |
| 154 | } |
| 155 | |
| 156 | static char *activation_string_span(const char *value, size_t length) { |
| 157 | char *copy = malloc(length + 1U); |
no outgoing calls
no test coverage detected