summaryrefslogtreecommitdiff
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
parentf81ab4be0a216ca2ffbe34e8f2821589b91a0399 (diff)
Simplified array's first element's address referral
-rw-r--r--rtclient.c2
-rw-r--r--test.c2
2 files changed, 2 insertions, 2 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;
diff --git a/test.c b/test.c
index 00ebb5f..87c3b18 100644
--- a/test.c
+++ b/test.c
@@ -37,7 +37,7 @@ int main(void)
, user->city, user->state, user->zip, user->country
, user->homephone, user->workphone, user->mobilephone
, user->pagerphone, user->contactinfo, user->comments
- , user->signature, &user->lang[0], user->privileged
+ , user->signature, user->lang, user->privileged
, user->disabled);
free(name);
if (user)