summaryrefslogtreecommitdiffstats
path: root/src/stk.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-10-22 22:28:04 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-10-22 22:28:04 -0500
commitd4801a306c2c0e2013157a047eebb3efa6efd09d (patch)
tree880931357ee9d81e0cc23fb46a5e252173ed8331 /src/stk.c
parent1cc2c6b1ce4e94cb2e0e5ba82e762939567cbe38 (diff)
downloadofono-d4801a306c2c0e2013157a047eebb3efa6efd09d.tar.bz2
stk: use null character instead of 0
Slightly better readability
Diffstat (limited to 'src/stk.c')
-rw-r--r--src/stk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stk.c b/src/stk.c
index dc33809e..3e9aab7b 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -1933,7 +1933,7 @@ static gboolean handle_command_send_dtmf(const struct stk_command *cmd,
}
/* Convert the DTMF string to phone number format */
- for (pos = 0; cmd->send_dtmf.dtmf[pos] != 0; pos++) {
+ for (pos = 0; cmd->send_dtmf.dtmf[pos] != '\0'; pos++) {
digit = strchr(dtmf_from, cmd->send_dtmf.dtmf[pos]);
if (!digit) {
rsp->result.type = STK_RESULT_TYPE_DATA_NOT_UNDERSTOOD;
@@ -1942,7 +1942,8 @@ static gboolean handle_command_send_dtmf(const struct stk_command *cmd,
dtmf[pos] = dtmf_to[digit - dtmf_from];
}
- dtmf[pos] = 0;
+
+ dtmf[pos] = '\0';
err = __ofono_voicecall_tone_send(vc, dtmf, dtmf_sent_cb, stk);