mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 10:16:42 +00:00
Update libopc. should fix #14
This commit is contained in:
parent
663f8e21c1
commit
0eefbac7b4
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -10,7 +10,7 @@
|
|||||||
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
|
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
|
||||||
|
|
||||||
|
|
||||||
static const char *const Version = "1.1.12";
|
static const char *const Version = "1.1.13";
|
||||||
static const char *const usage[] = {
|
static const char *const usage[] = {
|
||||||
"sist2 scan [OPTION]... PATH",
|
"sist2 scan [OPTION]... PATH",
|
||||||
"sist2 index [OPTION]... INDEX",
|
"sist2 index [OPTION]... INDEX",
|
||||||
|
@ -93,12 +93,15 @@ void parse_doc(void *mem, size_t mem_len, document_t *doc) {
|
|||||||
} while ((part = opcPartGetNext(c, part)));
|
} while ((part = opcPartGetNext(c, part)));
|
||||||
|
|
||||||
opcContainerClose(c, OPC_CLOSE_NOW);
|
opcContainerClose(c, OPC_CLOSE_NOW);
|
||||||
dyn_buffer_write_char(&buf, '\0');
|
|
||||||
|
|
||||||
meta_line_t *meta = malloc(sizeof(meta_line_t) + buf.cur);
|
if (buf.cur > 0) {
|
||||||
meta->key = MetaContent;
|
dyn_buffer_write_char(&buf, '\0');
|
||||||
strcpy(meta->strval, buf.buf);
|
|
||||||
APPEND_META(doc, meta)
|
meta_line_t *meta = malloc(sizeof(meta_line_t) + buf.cur);
|
||||||
|
meta->key = MetaContent;
|
||||||
|
strcpy(meta->strval, buf.buf);
|
||||||
|
APPEND_META(doc, meta)
|
||||||
|
}
|
||||||
|
|
||||||
dyn_buffer_destroy(&buf);
|
dyn_buffer_destroy(&buf);
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<nav class="navbar navbar-expand-lg">
|
<nav class="navbar navbar-expand-lg">
|
||||||
<a class="navbar-brand" href="/">sist2</a>
|
<a class="navbar-brand" href="/">sist2</a>
|
||||||
<span class="badge badge-pill version">v1.1.12</span>
|
<span class="badge badge-pill version">v1.1.13</span>
|
||||||
<span class="tagline">Lightning-fast file system indexer and search tool </span>
|
<span class="tagline">Lightning-fast file system indexer and search tool </span>
|
||||||
<a style="margin-left: auto" id="theme" class="btn" title="Toggle theme" href="/">Theme</a>
|
<a style="margin-left: auto" id="theme" class="btn" title="Toggle theme" href="/">Theme</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user