From 35cbad52cc64572ee46a52bcf0f98d5917dca878 Mon Sep 17 00:00:00 2001 From: David Fries Date: Wed, 18 Aug 2021 00:19:40 -0500 Subject: [PATCH] Document that sntp_setservername doesn't copy the string I was expecting the string to be duplicated, doing a Google search shows others did as well. --- src/apps/sntp/sntp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/sntp/sntp.c b/src/apps/sntp/sntp.c index 0e7f3652..36375305 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -914,7 +914,8 @@ sntp_getkodreceived(u8_t idx) * Initialize one of the NTP servers by name * * @param idx the index of the NTP server to set must be < SNTP_MAX_SERVERS - * @param server DNS name of the NTP server to set, to be resolved at contact time + * @param server DNS name of the NTP server to set, to be resolved at contact + * time. Note sntp stores the pointer, it doesn't copy the string. */ void sntp_setservername(u8_t idx, const char *server)