diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-22 16:31:47 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-22 16:31:47 +0800 |
commit | e72f04eda77ce4fbccad13406dc07b9ed40d0dfa (patch) | |
tree | 2adf9a833be30ce50ae19a23cd40148c8ae9e285 | |
parent | 1cbb45492da9a4c5351f3156b00286447a8b014a (diff) |
Fix the term
-rw-r--r-- | client.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,10 +17,10 @@ bool icclient_init(const char *url) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); #endif size_t length = strlen(url); - bool prepend = !(bool)(url[length - 1] == '/'); - server_url = malloc(length + (size_t)prepend + 1); + bool append = !(bool)(url[length - 1] == '/'); + server_url = malloc(length + (size_t)append + 1); strcpy(server_url, url); - if (prepend) + if (append) strcat(server_url, "/"); } |