aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-01-12 16:11:12 +0100
committerHarald Welte <laforge@osmocom.org>2020-01-12 16:11:12 +0100
commit113712c728f4abc07b07a1ab62c027b8e7690349 (patch)
tree5e863c4f1737c73b97d5952247736a9a1dc9dbce /src/common
parente5711efbb54c31afec2eb6791c5ce25f9eec785d (diff)
rsl.c: Fix compiler error on gcc-9.2.1
rsl.c: In function ‘rsl_rx_ipac_XXcx’: rsl.c:2147:39: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 28 [-Werror=format-truncation=] 2147 | snprintf(cname, sizeof(cname), "bts@%s", ipstr); | ^~ rsl.c:2147:3: note: ‘snprintf’ output between 5 and 260 bytes into a destination of size 32 2147 | snprintf(cname, sizeof(cname), "bts@%s", ipstr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Id982a814f401e304327d25c77666f039bc156c1f
Diffstat (limited to 'src/common')
-rw-r--r--src/common/rsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index d7e35654..10fb95e9 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -2081,7 +2081,7 @@ static int rsl_rx_ipac_XXcx(struct msgb *msg)
}
if (dch->c.msg_type == RSL_MT_IPAC_CRCX) {
- char cname[32];
+ char cname[256+4];
char *ipstr = NULL;
if (lchan->abis_ip.rtp_socket) {
LOGPLCHAN(lchan, DRSL, LOGL_ERROR, "Rx RSL IPAC CRCX, "