gmio_core/internal: fix strlen in GMIO_CONST_STRING_FROM_ARRAY()
This commit is contained in:
parent
6d8d694806
commit
39132c0b3f
@ -39,7 +39,7 @@ typedef struct gmio_const_string gmio_const_string_t;
|
||||
* const gmio_const_string_t token_s = GMIO_CONST_STRING_FROM_ARRAY(token);
|
||||
* \endcode
|
||||
*/
|
||||
#define GMIO_CONST_STRING_FROM_ARRAY(array) { &(array)[0], sizeof(array) }
|
||||
#define GMIO_CONST_STRING_FROM_ARRAY(array) { &(array)[0], sizeof(array) - 1 }
|
||||
|
||||
/*! Stores traditional 8-bit mutable strings
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user