summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2013-05-22 20:01:47 -0300
committerDenis Kenzior <denkenz@gmail.com>2013-05-22 21:37:52 -0500
commit874a9ee2850b9b295f5ee7d441e97115f5997acc (patch)
treee1f0cd85259b8be57a10419118533472ab05cddf /src
parent1c75edf59aeeafd75dd531e076cdbdccd8150bf6 (diff)
downloadofono-874a9ee2850b9b295f5ee7d441e97115f5997acc.tar.bz2
stk: Fix sizeof on memcpy
src/stk.c: In function ‘__ofono_cbs_sim_download’: src/stk.c:283:45: error: argument to ‘sizeof’ in ‘memcpy’ call is the same expression as the source; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] memcpy(&e.cbs_pp_download.page, msg, sizeof(msg)); ^
Diffstat (limited to 'src')
-rw-r--r--src/stk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stk.c b/src/stk.c
index 79747514..01c95b53 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -280,7 +280,7 @@ void __ofono_cbs_sim_download(struct ofono_stk *stk, const struct cbs *msg)
e.type = STK_ENVELOPE_TYPE_CBS_PP_DOWNLOAD;
e.src = STK_DEVICE_IDENTITY_TYPE_NETWORK;
- memcpy(&e.cbs_pp_download.page, msg, sizeof(msg));
+ memcpy(&e.cbs_pp_download.page, msg, sizeof(*msg));
err = stk_send_envelope(stk, &e, stk_cbs_download_cb,
ENVELOPE_RETRIES_DEFAULT);