summaryrefslogtreecommitdiff
path: root/rtclient.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-08 23:19:08 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-08 23:19:08 +0800
commita8cee2df9242ddeab36c5a4e8ddab9f17a452114 (patch)
tree7617ece6025b04e9172355c39acc261c6e0875ae /rtclient.c
parentf81ab4be0a216ca2ffbe34e8f2821589b91a0399 (diff)
Simplified array's first element's address referral
Diffstat (limited to 'rtclient.c')
-rw-r--r--rtclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtclient.c b/rtclient.c
index 2d12314..04332c7 100644
--- a/rtclient.c
+++ b/rtclient.c
@@ -69,7 +69,7 @@ user_callback(void *contents, size_t size, size_t nmemb, void *writedata)
{
size_t realsize = size * nmemb;
char response[realsize + 1];
- memcpy(&response[0], contents, realsize);
+ memcpy(response, contents, realsize);
response[realsize] = '\0';
static const unsigned short nproperties = 24;