projects
/
platform
/
core
/
telephony
/
tel-plugin-imc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d1e74
)
use g_try_malloc0 in util_removeQuotes
author
Philippe Nunes
<philippe.nunes@linux.intel.com>
Mon, 18 Mar 2013 17:11:23 +0000
(18:11 +0100)
committer
wootak.jung
<wootak.jung@samsung.com>
Sun, 24 Mar 2013 07:46:42 +0000
(16:46 +0900)
Change-Id: Iaec9310f6ce90cb1d024c25dcf43c3fc61fa8928
src/s_common.c
patch
|
blob
|
history
diff --git
a/src/s_common.c
b/src/s_common.c
index
7af8819
..
0c60d87
100644
(file)
--- a/
src/s_common.c
+++ b/
src/s_common.c
@@
-186,7
+186,7
@@
char* util_removeQuotes(void *data)
return NULL;
}
- tmp = g_try_malloc(data_len - 1);
+ tmp = g_try_malloc
0
(data_len - 1);
memcpy(tmp, data + 1, data_len - 2);
dbg("tmp: [%s]", tmp);