commit | cce1e9d50a66fce6858e0d8651782a43ecbab55a | [log] [tgz] |
---|---|---|
author | Alexander Couzens <lynxis@fe80.eu> | Fri Oct 02 00:15:43 2020 +0200 |
committer | Alexander Couzens <lynxis@fe80.eu> | Sat Oct 03 20:37:15 2020 +0200 |
tree | 968afea47643235e134fc1e34cc270f77b430322 | |
parent | 016a68bb1ee8192c47ed88841b06af2b39fa3c24 [diff] |
gtphub: fix compilation with gcc 10.2.0 gtphub.c:2915:2: error: ‘snprintf’ argument 4 may overlap destination object ‘buf’ [-Werror=restrict] 2915 | snprintf(pos, len, " port %s", portbuf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Be better safe and use the stack instead of byte counting in the buffer. Change-Id: Ied9665ce6bd2633797bbc3a2171e911ada357a22