Michael Koster / nanoservice_client_1_12_X

Dependents:   ArchPro_LWM2M_LED_Client Weather_Station_LWM2M mbedEndpointNetwork

Fork of nanoservice_client_1_12 by Zach Shelby

Files at this revision

API Documentation at this revision

Comitter:
michaeljkoster
Date:
Sun Jul 13 06:19:48 2014 +0000
Parent:
5:613a7624c473
Child:
7:2b79bf135ec2
Commit message:
add comment on lifetime truncation

Changed in this revision

sn_nsdl.c Show annotated file Show diff for this revision Revisions of this file
--- a/sn_nsdl.c	Sun Jul 13 01:23:05 2014 +0000
+++ b/sn_nsdl.c	Sun Jul 13 06:19:48 2014 +0000
@@ -1277,7 +1277,7 @@
 		memcpy(temp_ptr, ep_lifetime_parameter, sizeof(ep_lifetime_parameter));
 		temp_ptr += LT_PARAMETER_LEN;
 		memcpy(temp_ptr, parameter_ptr->lifetime_ptr, parameter_ptr->lifetime_len);
-		temp_ptr += parameter_ptr->lifetime_len;
+		temp_ptr += parameter_ptr->lifetime_len;// why does the last char of lifetime get cut off if this == strlen()?
 	}
 
 //FIXME need to add domain to query options