summaryrefslogtreecommitdiff
path: root/rtclient.c
diff options
context:
space:
mode:
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;