From a8cee2df9242ddeab36c5a4e8ddab9f17a452114 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, 8 Sep 2019 23:19:08 +0800 Subject: Simplified array's first element's address referral --- rtclient.c | 2 +- test.c | 2 +- 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) -- cgit v1.2.3