Skip to content

Commit 136f032

Browse files
broglep-workfabiobaltieri
authored andcommitted
net: lwm2m: fix max path size
in various places the path can contain leading slash Signed-off-by: Pascal Brogle <[email protected]>
1 parent b6bc324 commit 136f032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/lwm2m.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ void lwm2m_rd_client_update(void);
13981398
/**
13991399
* @brief LwM2M path maximum length
14001400
*/
1401-
#define LWM2M_MAX_PATH_STR_SIZE sizeof("65535/65535/65535/65535")
1401+
#define LWM2M_MAX_PATH_STR_SIZE sizeof("/65535/65535/65535/65535")
14021402

14031403
/**
14041404
* @brief Helper function to print path objects' contents to log

0 commit comments

Comments
 (0)