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

@@ -15,7 +15,7 @@
/*-----------------------------------------------------*\
| OpenRGB SDK Magic Value "ORGB" |
\*-----------------------------------------------------*/
const char * openrgb_sdk_magic = "ORGB";
const char openrgb_sdk_magic[OPENRGB_SDK_MAGIC_SIZE] = { 'O', 'R', 'G', 'B' };
void InitNetPacketHeader
(