diff options
-rw-r--r-- | blobmsg.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ static inline void blobmsg_clear_name(struct blob_attr *attr) static inline const char *blobmsg_name(const struct blob_attr *attr) { struct blobmsg_hdr *hdr = (struct blobmsg_hdr *) blob_data(attr); - return (const char *) hdr->name; + return (const char *)(hdr + 1); } static inline int blobmsg_type(const struct blob_attr *attr) |