Changeset: f4ceb68c494f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f4ceb68c494f
Modified Files:
        sql/backends/monet5/sql_scenario.c
Branch: Jan2022_prof_ext
Log Message:

Sizeof to strlen.


diffs (12 lines):

diff --git a/sql/backends/monet5/sql_scenario.c 
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -1141,7 +1141,7 @@ SQLparser(Client c)
        c->query = query_cleaned(m->sa, QUERY(m->scanner));
 
        if(malProfileMode > 0) {
-               str escaped_query = c->query? mal_quote(c->query, 
sizeof(c->query)) : NULL;
+               str escaped_query = c->query? mal_quote(c->query, 
strlen(c->query)) : NULL;
                generic_event("sql_parse",
                                         (struct GenericEvent)
                                         { &c->idx, &(c->curprg->def->tag), 
NULL, escaped_query, c->query? 0 : 1 },
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to