|
a/src/internfile/mh_text.cpp |
|
b/src/internfile/mh_text.cpp |
|
... |
|
... |
138 |
// Don't set ipath for the first chunk to avoid having 2
|
138 |
// Don't set ipath for the first chunk to avoid having 2
|
139 |
// records for small files (one for the file, one for the
|
139 |
// records for small files (one for the file, one for the
|
140 |
// first chunk). This is a hack. The right thing to do would
|
140 |
// first chunk). This is a hack. The right thing to do would
|
141 |
// be to use a different mtype for files over the page size,
|
141 |
// be to use a different mtype for files over the page size,
|
142 |
// and keep text/plain only for smaller files.
|
142 |
// and keep text/plain only for smaller files.
|
143 |
char buf[20];
|
143 |
char buf[30];
|
144 |
sprintf(buf, "%lld", (long long)(m_offs - m_text.length()));
|
144 |
sprintf(buf, "%lld", (long long)(m_offs - m_text.length()));
|
145 |
if (m_offs - m_text.length() != 0)
|
145 |
if (m_offs - m_text.length() != 0)
|
146 |
m_metaData["ipath"] = buf;
|
146 |
m_metaData["ipath"] = buf;
|
147 |
readnext();
|
147 |
readnext();
|
148 |
return true;
|
148 |
return true;
|