X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_xml.c;h=755ed5922b7dab998fab95fd2250f93069a76538;hp=a797e639f5c970e89c5b7d0c814d812d954ff9ad;hb=c0ecfba627c1d6c3f46d59bd4e5e6f883a494dc4;hpb=2282a040e60b24d3fb7c48bb197c5bff6636df67 diff --git a/palacios/src/palacios/vmm_xml.c b/palacios/src/palacios/vmm_xml.c index a797e63..755ed59 100644 --- a/palacios/src/palacios/vmm_xml.c +++ b/palacios/src/palacios/vmm_xml.c @@ -1111,7 +1111,7 @@ static char *toxml_r(struct v3_xml * xml, char **s, size_t *len, size_t *max, *len += sprintf(*s + *len, "", xml->name); // close tag - while (txt[off] && off < xml->off) off++; // make sure off is within bounds + while (off < xml->off && txt[off]) off++; // make sure off is within bounds return (xml->ordered) ? toxml_r(xml->ordered, s, len, max, off) : ampencode(txt + off, -1, s, len, max, 0); }