chore(cpn): upgrade to Ubuntu 22.04 and Qt 6.9.0 (#5986)
Co-authored-by: elecpower <elecpower@users.noreply.github.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
elecpower
raphaelcoeffic
parent
7264b28e62
commit
9e86a3ea84
@@ -46,7 +46,8 @@ WizMix::WizMix(const GeneralSettings & settings, unsigned int modelId, const Mod
|
||||
vehicle(NOVEHICLE)
|
||||
{
|
||||
memset(name, 0, sizeof(name));
|
||||
strncpy(name, originalModelData.name, sizeof(name)-1);
|
||||
memcpy(name, originalModelData.name, sizeof(name) - 1);
|
||||
name[sizeof(name) - 1] = '\0';
|
||||
}
|
||||
|
||||
void WizMix::maxMixSwitch(char *name, MixData &mix, int channel, int sw, int weight)
|
||||
@@ -94,9 +95,9 @@ WizMix::operator ModelData()
|
||||
int mixIndex = 0;
|
||||
int timerIndex = 0;
|
||||
|
||||
// Safe copy model name
|
||||
memset(model.name, 0, sizeof(model.name));
|
||||
strncpy(model.name, name, sizeof(model.name)-1);
|
||||
memcpy(model.name, name, sizeof(model.name) - 1);
|
||||
model.name[sizeof(model.name) - 1] = '\0';
|
||||
|
||||
// Add the channel mixes
|
||||
for (int i=0; i<WIZ_MAX_CHANNELS; i++ )
|
||||
|
||||
Reference in New Issue
Block a user