diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xplist.c b/src/xplist.c index d8d2d72..ec00410 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -875,7 +875,7 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist, uint32_t depth) | |||
| 875 | } | 875 | } |
| 876 | if (embedded_dtd) { | 876 | if (embedded_dtd) { |
| 877 | find_str(ctx, "]>", 2, 1); | 877 | find_str(ctx, "]>", 2, 1); |
| 878 | if (strncmp(ctx->pos, "]>", 2)) { | 878 | if (ctx->pos >= ctx->end || strncmp(ctx->pos, "]>", 2)) { |
| 879 | PLIST_XML_ERR("Couldn't find end of DOCTYPE\n"); | 879 | PLIST_XML_ERR("Couldn't find end of DOCTYPE\n"); |
| 880 | ctx->err++; | 880 | ctx->err++; |
| 881 | goto err_out; | 881 | goto err_out; |
