gmio_core/internal: fix strlen in GMIO_CONST_STRING_FROM_ARRAY()

This commit is contained in:
Hugues Delorme 2015-10-28 16:13:23 +01:00
parent 6d8d694806
commit 39132c0b3f

View File

@ -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
*