projects
/
platform
/
core
/
telephony
/
libtcore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3398e2
)
util: fix pdu encoding error
author
Caiwen Zhang
<caiwen.zhang@intel.com>
Sat, 16 Mar 2013 08:21:39 +0000
(16:21 +0800)
committer
wootak.jung
<wootak.jung@samsung.com>
Sun, 24 Mar 2013 09:03:13 +0000
(18:03 +0900)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
e3a51a5
..
870c88b
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-1168,10
+1168,10
@@
int tcore_util_pdu_encode(const unsigned char *sca, const unsigned char *tpdu,
converted_sca[i] = sca[i];
out:
- memcpy(pdu, converted_sca, sca_len);
- memcpy(pdu + sca_len, tpdu, tpdu_len);
+ memcpy(pdu, converted_sca, sca_len
+ 1
);
+ memcpy(pdu + sca_len
+ 1
, tpdu, tpdu_len);
- return sca_len + tpdu_len;
+ return sca_len +
1 +
tpdu_len;
}
unsigned char *tcore_util_unpack_gsm7bit(const unsigned char *src, unsigned int src_len)