if (r < 0)
return r;
- size_t total_len = r * 2; // should be enough
+ size_t total_len = r * 2; // should be enough
char *full_buf = (char *)malloc(total_len);
if (!full_buf)
return -ENOMEM;
return r;
char *p = full_buf;
- char *end = full_buf + r;
+ const char *end = full_buf + r;
char *dest = names;
char *dest_end = names + len;
return r;
size_t total_len = r * 2; // should be enough
- size_t total_len = r * 2; // should be enough
+ char *full_buf = (char *)malloc(total_len);
if (!full_buf)
return -ENOMEM;
return r;
char *p = full_buf;
- char *end = full_buf + r;
+ const char *end = full_buf + r;
char *dest = names;
char *dest_end = names + len;