maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.1k stars 169 forks source link

cannot build esp32 example #95

Closed mentaluproar closed 5 years ago

mentaluproar commented 5 years ago

in trying to build the esp32/led example, the build failed with the following error: CC examples/esp32/led/build/homekit/src/storage.o /home/sean/Downloads/esp-homekit-demo/components/common/homekit/src/storage.c: In function 'homekit_storage_init': /home/sean/Downloads/esp-homekit-demo/components/common/homekit/src/storage.c:56:38: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess] strncpy(magic, magic1, sizeof(magic1));

help?

konifer44 commented 5 years ago

Same here ☹️

maximkulkin commented 5 years ago

Fixed