diff --git a/src/hal/drivers/mesa-hostmot2/hostmot2.h b/src/hal/drivers/mesa-hostmot2/hostmot2.h index 426e8e61b5b..8a4597951cb 100644 --- a/src/hal/drivers/mesa-hostmot2/hostmot2.h +++ b/src/hal/drivers/mesa-hostmot2/hostmot2.h @@ -145,7 +145,7 @@ typedef struct { rtapi_u32 idrom_type; rtapi_u32 offset_to_modules; rtapi_u32 offset_to_pin_desc; - rtapi_u8 board_name[8]; // ascii string, but not NULL terminated! + rtapi_u8 board_name[8] __attribute__ ((nonstring)); // ASCII string, but not NULL terminated! rtapi_u32 fpga_size; rtapi_u32 fpga_pins; rtapi_u32 io_ports; diff --git a/src/hal/drivers/mesa-hostmot2/llio_info.c b/src/hal/drivers/mesa-hostmot2/llio_info.c index da8dbcea08a..d300aeae124 100644 --- a/src/hal/drivers/mesa-hostmot2/llio_info.c +++ b/src/hal/drivers/mesa-hostmot2/llio_info.c @@ -26,7 +26,7 @@ #include "llio_info.h" typedef struct __info_entry_t { - char board_name[8]; + char board_name[8] __attribute__ ((nonstring)); const char *base_name; int num_ioport_connectors; int pins_per_connector;