aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2022-10-15 15:56:27 +0300
committerMax <msuraev@sysmocom.de>2022-10-15 16:36:54 +0300
commit9683b5f9917be999f1cad8e92f1e4f539a30f392 (patch)
tree8134612a53f96251dbf98246a2a92f7b1ab95fab /src/utils
parente4f429cc904ac2ffbc455a081880a39888006787 (diff)
smpp_mirror: fix compiler warning
Use same system_id/password length limits as OsmoMSC. Related: OS#5568 Change-Id: Iaf2b99b80f81762f5b2577f7bc490791c9cc1810
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/smpp_mirror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/smpp_mirror.c b/src/utils/smpp_mirror.c
index 48b9ea292..552ceee41 100644
--- a/src/utils/smpp_mirror.c
+++ b/src/utils/smpp_mirror.c
@@ -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;