From e72f04eda77ce4fbccad13406dc07b9ed40d0dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 22 Sep 2019 16:31:47 +0800 Subject: Fix the term --- client.c | 6 +++--- 1 file 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, "/"); } -- cgit v1.2.3