dvb: Fix string copy wiht strlen() argument
authorEdward Hervey <edward@centricular.com>
Sat, 19 May 2018 09:03:08 +0000 (11:03 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 19 May 2018 09:03:08 +0000 (11:03 +0200)
commit07a3bf0e8ff26578c0b996a88c8ebb0cf7329b83
tree2ceaede316ada554667b037d567fb42ad2afeb44
parent5c7719ea7469542ce84576ab6c717b834648f655
dvb: Fix string copy wiht strlen() argument

This is a new warning introduced by gcc 8

We already check just before that we have enough space, just do a regular
memcpy with the full string size.

camswclient.c:87:3: error: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
sys/dvb/camswclient.c