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 committed 2024-07-07 19:29:54 -05:00
1 parent 005212b463
commit cb8ea601cf
2 files changed
+3 -2

No files matched your search

+1 -1
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
(