diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-23 23:50:27 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-23 23:50:27 +0100 |
commit | 9e5725662f944fe437be7ba1b54acbc5fc18dbe1 (patch) | |
tree | e5daa605b91dce014582f35fe0330287c1867775 /common.c | |
parent | 0785a6f417d3a6e43d2d72132e550d517af41bc4 (diff) | |
download | xK-9e5725662f944fe437be7ba1b54acbc5fc18dbe1.tar.gz xK-9e5725662f944fe437be7ba1b54acbc5fc18dbe1.tar.xz xK-9e5725662f944fe437be7ba1b54acbc5fc18dbe1.zip |
Bump liberty
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ init_openssl (void) // --- To be moved to liberty -------------------------------------------------- static ssize_t -str_vector_find (const struct str_vector *v, const char *s) +strv_find (const struct strv *v, const char *s) { for (size_t i = 0; i < v->len; i++) if (!strcmp (v->vector[i], s)) @@ -702,7 +702,7 @@ socks_try_fill_read_buffer (struct socks_connector *self, size_t n) return true; ssize_t received; - str_ensure_space (&self->read_buffer, remains); + str_reserve (&self->read_buffer, remains); do received = recv (self->socket_fd, self->read_buffer.str + self->read_buffer.len, remains, 0); |