aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-07-26 20:15:51 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-07-26 20:31:55 +0200
commitfa391ee86ce0df7e0b637410bd07664b44b1adba (patch)
tree219811d258c5a1446fd1a69d5f077e8280eadc39 /m4
parent27989d41dc3ec1503422c9ef802419d1a3a11748 (diff)
vlr_access_req_fsm.c: use osmo_strlcpy and avoid compiler error
gcc 8.1.0: ../../../../src/osmo-msc/src/libvlr/vlr_access_req_fsm.c:679:3: error: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 31 [-Werror=stringop-truncation] strncpy(par->imsi, mi_string, sizeof(par->imsi)-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Mobile Identity is a union of various kinds, but the IMSI is at most 15 digits, so truncation is "intended". I hope other layers validate the correct length of an IMSI MI. Change-Id: I0a17a188fc91e42e252ae4bf1d6cd0bf0e5eb077
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions