File virtuoso-wrong-memset.patch of Package virtuoso
diff --git a/libsrc/Tidy/lexer.c b/libsrc/Tidy/lexer.c
index b3f8626..2b68674 100644
--- a/libsrc/Tidy/lexer.c
+++ b/libsrc/Tidy/lexer.c
@@ -191,7 +191,7 @@ Lexer *NewLexer(StreamIn *in)
Lexer *lexer;
lexer = (Lexer *)MemAlloc(sizeof(Lexer));
- ClearMemory (lexer, sizeof (Lexer *));
+ ClearMemory (lexer, sizeof (Lexer));
lexer->in = in;
lexer->lines = 1;
lexer->columns = 1;
@@ -483,7 +483,7 @@ Node *NewNode(void)
Node *node;
node = (Node *)MemAlloc(sizeof(Node));
- ClearMemory (node, sizeof (Node *));
+ ClearMemory (node, sizeof (Node));
node->type = TextNode;
return node;
}
diff --git a/libsrc/Tidy/tidy.c b/libsrc/Tidy/tidy.c
index d8ee51a..01ee1af 100644
--- a/libsrc/Tidy/tidy.c
+++ b/libsrc/Tidy/tidy.c
@@ -215,7 +215,7 @@ StreamIn *OpenInputBoxString(caddr_t html_input)
{
StreamIn *in;
in = (StreamIn *)MemAlloc(sizeof(StreamIn));
- ClearMemory(in, sizeof (StreamIn *));
+ ClearMemory(in, sizeof (StreamIn));
in->input.tio_data.lm_memblock = html_input;
in->input.tio_data.lm_length = box_length (html_input)-1;
in->input.tio_pos = 0;
diff --git a/libsrc/Wi/srvcr.c b/libsrc/Wi/srvcr.c
index 63d9d6c..754a333 100644
--- a/libsrc/Wi/srvcr.c
+++ b/libsrc/Wi/srvcr.c
@@ -2085,7 +2085,7 @@ bif_scroll_cr_open (caddr_t * qst, caddr_t * err_ret, state_slot_t ** args)
{
params[0][inx] = box_copy_tree (bif_arg (qst, args, inx + 1, "__scroll_cr_open"));
}
- memset (opts, 0, sizeof (opts));
+ memset (opts, 0, sizeof (stmt_options_t));
opts->so_concurrency = SQL_CONCUR_LOCK;
opts->so_cursor_type = stmt->sst_query->qr_cursor_type;