diff options
Diffstat (limited to 'data/reg2xml.c')
-rw-r--r-- | data/reg2xml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/data/reg2xml.c b/data/reg2xml.c index cffab86..b6a8da3 100644 --- a/data/reg2xml.c +++ b/data/reg2xml.c @@ -145,7 +145,10 @@ _parse(const char *filename, goto multiline; } else { buffer[len] = 0; - fsetpos(fp, &pos); + if (fsetpos(fp, &pos) == -1) { + lt_critical("Unable to parse mutliple line"); + return FALSE; + } } token = strstr(buffer, ": "); tag = lt_strndup(buffer, token - buffer); |