Switch to unified view
a/src/internfile/mh_text.cpp | b/src/internfile/mh_text.cpp | ||
---|---|---|---|
... |
... |
||
98 | } |
98 | } |
99 | 99 | ||
100 | bool MimeHandlerText::skip_to_document(const string& ipath) |
100 | bool MimeHandlerText::skip_to_document(const string& ipath) |
101 | { |
101 | { |
102 | long long t; |
102 | long long t; |
103 | sscanf(ipath.c_str(), "%lld", &t);
|
103 | if (sscanf(ipath.c_str(), "%lld", &t) != 1) { |
104 | LOGERR(("MimeHandlerText::skip_to_document: bad ipath offs [%s]\n", |
||
105 | ipath.c_str())); |
||
106 | return false; |
||
107 | } |
||
104 | m_offs = (off_t)t; |
108 | m_offs = (off_t)t; |
105 | readnext(); |
109 | readnext(); |
106 | return true; |
110 | return true; |
107 | } |
111 | } |
108 | 112 |