From 6650631b4fb4ca8deb0e99e0a08bb9085a9ae9db Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 7 Feb 2021 17:07:10 +0100 Subject: [PATCH] libmobile: Minor fixes --- src/libmobile/call.c | 5 +++-- src/libmobile/console.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/libmobile/call.c b/src/libmobile/call.c index b74b2a0..3ea1631 100644 --- a/src/libmobile/call.c +++ b/src/libmobile/call.c @@ -709,9 +709,10 @@ void ll_msg_cb(osmo_cc_endpoint_t __attribute__((unused)) *ep, uint32_t callref, /* caller id */ rc = osmo_cc_get_ie_calling(msg, 0, &type, &plan, &present, &screen, caller_id, sizeof(caller_id)); - if (rc < 0) + if (rc < 0) { caller_type = TYPE_NOTAVAIL; - else { + caller_id[0] = '\0'; + } else { switch (type) { case OSMO_CC_TYPE_INTERNATIONAL: caller_type = TYPE_INTERNATIONAL; diff --git a/src/libmobile/console.c b/src/libmobile/console.c index 54757fa..df3323a 100644 --- a/src/libmobile/console.c +++ b/src/libmobile/console.c @@ -66,8 +66,8 @@ typedef struct console { uint32_t callref; enum console_state state; int disc_cause; /* cause that has been sent by transceiver instance for release */ - char station_id[16]; - char dialing[16]; + char station_id[33]; + char dialing[33]; char audiodev[64]; /* headphone interface, if used */ int samplerate; /* sample rate of headphone interface */ void *sound; /* headphone interface */