diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-08 23:19:08 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-08 23:19:08 +0800 |
commit | a8cee2df9242ddeab36c5a4e8ddab9f17a452114 (patch) | |
tree | 7617ece6025b04e9172355c39acc261c6e0875ae | |
parent | f81ab4be0a216ca2ffbe34e8f2821589b91a0399 (diff) |
Simplified array's first element's address referral
-rw-r--r-- | rtclient.c | 2 | ||||
-rw-r--r-- | test.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; @@ -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) |