ds18b20: Segmentation fault on 64bit Raspberry Pi

Signed-off-by: Evgeny Chukreev <Evgeny.Chukreev@gmail.com>
This commit is contained in:
Evgeny Chukreev 2021-03-18 01:12:04 +01:00 committed by KevinOConnor
parent 8eceb9d40a
commit 8c369b54ab
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ command_config_ds18b20(uint32_t *args)
{
// Open kernel port
uint8_t serial_len = args[1];
uint8_t *serial = (void*)(size_t)args[2];
uint8_t *serial = command_decode_ptr(args[2]);
if (memchr(serial, '/', serial_len))
goto fail1;
char fname[56];