occured if closing before opening
Change-Id: I9c9515535d83f2c13bb75c0638e12c0a5a333413
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
}
if (emit)
fwrite(template, (size_t)(beg - template), 1, file);
- term = strstr(template, clstr);
+ beg += oplen;
+ term = strstr(beg, clstr);
if (term == NULL)
return MUSTACH_ERROR_UNEXPECTED_END;
template = term + cllen;
- beg += oplen;
len = (size_t)(term - beg);
c = *beg;
switch(c) {