kopia lustrzana https://github.com/Hamlib/Hamlib
Merge pull request #497 from df7cb/unaligned_access
dummy/dummy.c: Fix unaligned access in dummy_get_level()pull/506/head
commit
6a52370531
|
@ -1123,7 +1123,7 @@ static int dummy_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
break;
|
||||
}
|
||||
|
||||
*val = curr->levels[idx];
|
||||
memcpy (val, &curr->levels[idx], sizeof(value_t));
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called: %s\n", __func__,
|
||||
rig_strlevel(level));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue