Changeset: b5c1a3514e08 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b5c1a3514e08
Branch: Oct2020
Log Message:

Merged with Jun2020


diffs (14 lines):

diff --git a/monetdb5/mal/mal_exception.c b/monetdb5/mal/mal_exception.c
--- a/monetdb5/mal/mal_exception.c
+++ b/monetdb5/mal/mal_exception.c
@@ -67,8 +67,8 @@ createExceptionInternal(enum malexceptio
        // if there is an error we allow memory allocation once again
        GDKsetmallocsuccesscount(-1);
 #endif
-       len = snprintf(local, GDKMAXERRLEN - 1, "%s:%s:", exceptionNames[type], 
fcn);
-       len = vsnprintf(local + len, GDKMAXERRLEN -1, format, ap);
+       len = snprintf(local, GDKMAXERRLEN, "%s:%s:", exceptionNames[type], 
fcn);
+       len = vsnprintf(local + len, GDKMAXERRLEN - len, format, ap);
        if (len < 0)
                TRC_CRITICAL(MAL_SERVER, "called with bad arguments");
        char *q = local;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to