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:
Max 2022-10-15 15:56:27 +03:00
parent e4f429cc90
commit 9683b5f991
1 changed files with 2 additions and 2 deletions

View File

@ -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;