Missed this previously, sorry: *strsep()* is a BSD extension and may not be available everywhere, so we can't use it without checking for it. Could we maybe rewrite this with *strchr()*? Something like the following (untested):

```c
char *ptr = buf_t;
size_t index = 0;
while (ptr != NULL)
{
  char *next = strchr (ptr, ',');
  if (next != NULL)
  {
    *next = 0;
    next++;
  }
  metrics_t[index] = ptr;
  ptr = next;
  index++;
}
```

As an alternative we could just iterate over the buffer as above, when calculating `count`.