]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.h
fixed some potentially nasty memory issues
[meshlink] / src / meshlink.h
index 9f6c63ceb5e55616c6e7662f2e1940b58c9a4d24..e9c531ff27008bed4a6518aa095a6a8984434d9a 100644 (file)
@@ -85,14 +85,14 @@ extern __thread meshlink_errno_t meshlink_errno;
 #ifndef MESHLINK_INTERNAL_H
 
 struct meshlink_handle {
-       const char *name;
+       char *name;
        char *appname;
        dev_class_t devclass;
        void *priv;
 };
 
 struct meshlink_node {
-       const char *name; ///< Textual name of this node. It is stored in a nul-terminated C string, which is allocated by MeshLink.
+       char *name;       ///< Textual name of this node. It is stored in a nul-terminated C string, which is allocated by MeshLink.
        void *priv;       ///< Private pointer which may be set freely by the application, and is never used or modified by MeshLink.
 };