summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxcommon/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/zbxcommon/xml.c')
-rw-r--r--src/libs/zbxcommon/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxcommon/xml.c b/src/libs/zbxcommon/xml.c
index f6938dd2..4d242d76 100644
--- a/src/libs/zbxcommon/xml.c
+++ b/src/libs/zbxcommon/xml.c
@@ -52,7 +52,7 @@ int xml_get_data(char *xml,char *tag, char *data, int maxlen)
if(ret == SUCCEED)
{
- len=end-(start+strlen(tag_open));
+ len = (int)(end - start - strlen(tag_open));
if(len>maxlen) len=maxlen;