| 10409 | */ |
| 10410 | |
| 10411 | static |
| 10412 | char *get_41_protocol_string(char **buffer, |
| 10413 | size_t *max_bytes_available, |
| 10414 | size_t *string_length) |
| 10415 | { |
| 10416 | char *str= (char *)memchr(*buffer, '\0', *max_bytes_available); |
| 10417 | |
| 10418 | if (str == NULL) |
| 10419 | return NULL; |
| 10420 | |
| 10421 | *string_length= (size_t)(str - *buffer); |
| 10422 | *max_bytes_available-= *string_length + 1; |
| 10423 | str= *buffer; |
| 10424 | *buffer += *string_length + 1; |
| 10425 | |
| 10426 | return str; |
| 10427 | } |
| 10428 | |
| 10429 | |
| 10430 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected