We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bcc195 commit 613a76fCopy full SHA for 613a76f
src/xplist.c
@@ -1066,7 +1066,7 @@ static plist_err_t node_from_xml(parse_ctx ctx, plist_t *plist)
1066
ctx->err++;
1067
goto err_out;
1068
}
1069
- int taglen = ctx->pos - p;
+ size_t taglen = ctx->pos - p;
1070
tag = (char*)malloc(taglen + 1);
1071
strncpy(tag, p, taglen);
1072
tag[taglen] = '\0';
@@ -1084,7 +1084,7 @@ static plist_err_t node_from_xml(parse_ctx ctx, plist_t *plist)
1084
1085
1086
if (*(ctx->pos-1) == '/') {
1087
- int idx = ctx->pos - p - 1;
+ size_t idx = ctx->pos - p - 1;
1088
if (idx < taglen)
1089
tag[idx] = '\0';
1090
is_empty = 1;
0 commit comments