]> git.sur5r.net Git - openocd/blobdiff - src/target/target_type.h
fix segfault from stack corruption in ahbap_debugport_init
[openocd] / src / target / target_type.h
index 10fcd4fd28592f2f430900bf34256c1562984cb5..bfa7f9379fb35714aaa0a529a5243feed3b9383b 100644 (file)
@@ -27,6 +27,7 @@
 #define TARGET_TYPE_H
 
 #include <helper/types.h>
+#include <jim-nvp.h>
 
 struct target;
 
@@ -41,7 +42,7 @@ struct target_type
         * Name of this type of target.  Do @b not access this
         * field directly, use target_type_name() instead.
         */
-       char *name;
+       const char *name;
 
        /* poll current target status */
        int (*poll)(struct target *target);