Mercurial > public > ostc4
diff Discovery/Src/settings.c @ 994:bad5561c0c59 GasConsumption
Fix a compilation error occurring on non-Windows platforms, caused by incorrect case in '#include' file names.
Also fix some compiler warnings from non-safe use of 'memcpy'. (mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 27 Apr 2025 09:56:22 +0200 |
| parents | df052f0347fb |
| children | 2f7531a8e922 |
line wrap: on
line diff
--- a/Discovery/Src/settings.c Fri Apr 25 08:26:03 2025 +0200 +++ b/Discovery/Src/settings.c Sun Apr 27 09:56:22 2025 +0200 @@ -463,7 +463,7 @@ pSettings->gasConsumption_deco_l_min = pStandard->gasConsumption_deco_l_min; // no break case 0xFFFF000C: - memcpy(pSettings->customtext, " hwOS 4\n\r" " welcome\n\r", 60); + strncpy(pSettings->customtext, " hwOS 4\n\r" " welcome\n\r", sizeof(pSettings->customtext)); // no break case 0xFFFF000D: // nothing to do from 0xFFFF000D to 0xFFFF000E, just about header :-) case 0xFFFF000E:
