Fix warning related to sizeof() on const char array, the null terminator is not used here so reworked the array to explicitly be 4 elements

This commit is contained in:
Adam Honse 2024-07-07 18:40:43 -05:00
parent 005212b463
commit cb8ea601cf
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,8 @@
/*-----------------------------------------------------*\
| OpenRGB SDK Magic Value "ORGB" |
\*-----------------------------------------------------*/
extern const char * openrgb_sdk_magic;
#define OPENRGB_SDK_MAGIC_SIZE 4
extern const char openrgb_sdk_magic[OPENRGB_SDK_MAGIC_SIZE];
typedef struct NetPacketHeader
{