aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/ie.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/misdn/ie.c')
-rw-r--r--channels/misdn/ie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/misdn/ie.c b/channels/misdn/ie.c
index 9b86fe4ef..32f0b76c2 100644
--- a/channels/misdn/ie.c
+++ b/channels/misdn/ie.c
@@ -953,7 +953,7 @@ static void enc_ie_keypad(unsigned char **ntmode, msg_t *msg, char *keypad, int
if (MISDN_IE_DEBG) printf(" keypad='%s'\n", keypad);
- l = strlen((char *)keypad);
+ l = strlen(keypad);
p = msg_put(msg, l+2);
if (nt)
*ntmode = p+1;
@@ -961,7 +961,7 @@ static void enc_ie_keypad(unsigned char **ntmode, msg_t *msg, char *keypad, int
qi->QI_ELEMENT(keypad) = p - (unsigned char *)qi - sizeof(Q931_info_t);
p[0] = IE_KEYPAD;
p[1] = l;
- strncpy((char *)p+2, (char *)keypad, strlen((char *)keypad));
+ strncpy((char *)p+2, keypad, strlen(keypad));
}
#endif