esp-open-rtos/extras/sntp
funnydog 65a0c95b13 extras/sntp: fix an off-by-one bug in sntp_set_servers()
The function sntp_set_servers() duplicates the strings supplied in the
server_url[] array into new strings but forgets to allocate the extra
byte needed for the \0 terminator for each string.

Fix the problem by using strdup(), which allocates the right amount of
memory and copies the string at once.
2017-03-14 20:32:51 +01:00
..
component.mk Added sntp support and example 2016-03-09 17:18:51 +01:00
sntp.c extras/sntp: fix an off-by-one bug in sntp_set_servers() 2017-03-14 20:32:51 +01:00
sntp.h Removed my _time() implementation to use newlib provided one. 2016-03-31 16:05:15 +02:00
sntp_fun.c Removed my _time() implementation to use newlib provided one. 2016-03-31 16:05:15 +02:00