From c668f346ce223ec1bd501f40b62695edc06385d4 Mon Sep 17 00:00:00 2001 From: zmq Date: Mon, 26 May 2025 15:41:02 +0800 Subject: [PATCH] Fixed the issue where the length of the network port name did not match the actual usable length --- common/avbts_osnet.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }