diff --git a/common/avbts_osnet.hpp b/common/avbts_osnet.hpp index d73c5fe..f4b6dde 100644 --- a/common/avbts_osnet.hpp +++ b/common/avbts_osnet.hpp @@ -218,7 +218,7 @@ class InterfaceName: public InterfaceLabel { if(string == NULL) return false; - if (length >= strlen(name) + 1) { + if (length >= strlen(name)) { PLAT_strncpy(string, name, length); return true; }