smpp_mirror: fix compiler warning
Use same system_id/password length limits as OsmoMSC. Related: OS#5568 Change-Id: Iaf2b99b80f81762f5b2577f7bc490791c9cc1810
This commit is contained in:
parent
e4f429cc90
commit
9683b5f991
|
@ -117,8 +117,8 @@ static int bind_transceiver(struct esme *esme)
|
|||
memset(&bind, 0, sizeof(bind));
|
||||
bind.command_id = BIND_TRANSCEIVER;
|
||||
bind.sequence_number = esme_inc_seq_nr(esme);
|
||||
snprintf((char *)bind.system_id, sizeof(bind.system_id), "%s", esme->system_id);
|
||||
snprintf((char *)bind.password, sizeof(bind.password), "%s", esme->password);
|
||||
snprintf((char *)bind.system_id, SMPP_SYS_ID_LEN + 1, "%s", esme->system_id);
|
||||
snprintf((char *)bind.password, SMPP_SYS_ID_LEN + 1, "%s", esme->password);
|
||||
snprintf((char *)bind.system_type, sizeof(bind.system_type), "mirror");
|
||||
bind.interface_version = esme->smpp_version;
|
||||
|
||||
|
|
Loading…
Reference in New Issue