summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-01-18 14:11:39 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-01-18 16:09:28 -0600
commit16929cc9787f6ef38090c254cf6db04c510ae373 (patch)
tree0c335e609c2a681aba2a87c9a2a46327d30deccc
parent2c79277073ea6626ca0082e4df3165c1448be6bf (diff)
downloadofono-16929cc9787f6ef38090c254cf6db04c510ae373.tar.bz2
voicecall: Be more explicit when copying structs
-rw-r--r--drivers/atmodem/voicecall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
index 2b9ec49e..9e569990 100644
--- a/drivers/atmodem/voicecall.c
+++ b/drivers/atmodem/voicecall.c
@@ -206,7 +206,8 @@ static void clcc_poll_cb(gboolean ok, GAtResult *result, gpointer user_data)
* CDIP doesn't arrive as part of CLCC, always
* re-use from the old call
*/
- nc->called_number = oc->called_number;
+ memcpy(&nc->called_number, &oc->called_number,
+ sizeof(oc->called_number));
/*
* If the CLIP is not provided and the CLIP never