summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-22 16:31:47 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-22 16:31:47 +0800
commite72f04eda77ce4fbccad13406dc07b9ed40d0dfa (patch)
tree2adf9a833be30ce50ae19a23cd40148c8ae9e285
parent1cbb45492da9a4c5351f3156b00286447a8b014a (diff)
Fix the term
-rw-r--r--client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index 4e8c5df..2d315ab 100644
--- a/client.c
+++ b/client.c
@@ -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, "/");
}