obuspa: fix compilation warnings with gcc-14

This commit is contained in:
Vivek Kumar Dutta 2025-12-22 13:17:44 +05:30
parent dc670b2621
commit a8f81dc358
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
2 changed files with 3 additions and 3 deletions

View file

@ -5,13 +5,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=10.0.7.11
PKG_VERSION:=10.0.7.12
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/obuspa.git
PKG_SOURCE_VERSION:=1594e87bdb9481e6aa4f4cfbe7d975d2094713e6
PKG_SOURCE_VERSION:=567bc255d8847a113864882dfe8b76fc1b2cfdf7
PKG_MAINTAINER:=Vivek Dutta <vivek.dutta@iopsys.eu>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.zst
PKG_MIRROR_HASH:=skip

View file

@ -574,7 +574,7 @@ Index: obuspa-10.0.4.0/src/core/device_bulkdata.c
+ param_type = param_type_value[0]; // First character denotes the type of the parameter
+ param_value = &param_type_value[1]; // Subsequent characters contain the parameter's value
+
+ strncpy(buff, param_path, sizeof(buff));
+ USP_STRNCPY(buff, param_path, sizeof(buff));
+ for (pch = strtok_r(buff, ".", &pchr); pch != NULL; pch = strtok_r(NULL, ".", &pchr)) {
+ int idx;
+ JsonNode *obj = element;