projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '1.1-rel'
[platform/upstream/iotivity.git]
/
plugins
/
samples
/
linux
/
IotivityandZigbeeClient.c
diff --git
a/plugins/samples/linux/IotivityandZigbeeClient.c
b/plugins/samples/linux/IotivityandZigbeeClient.c
index
2c0de60
..
2c39b90
100644
(file)
--- a/
plugins/samples/linux/IotivityandZigbeeClient.c
+++ b/
plugins/samples/linux/IotivityandZigbeeClient.c
@@
-199,6
+199,7
@@
OCPayload* getChangeBulbTempLevelPayload(uint32_t level)
errno = 0;
size_t sizeValue = sizeof(value);
int strRet = snprintf(value, sizeValue, "%d", level);
+
if (strRet < 0 || strRet >= (int)sizeValue)
{
OIC_LOG_V(ERROR, TAG, "Failed to parse string due to errno: %d", errno);