Changeset: 382d761465ac for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/382d761465ac
Modified Files:
        sql/server/sql_atom.c
Branch: Mar2025
Log Message:

Use correct size for buffer.


diffs (12 lines):

diff --git a/sql/server/sql_atom.c b/sql/server/sql_atom.c
--- a/sql/server/sql_atom.c
+++ b/sql/server/sql_atom.c
@@ -664,7 +664,7 @@ atom2sql(allocator *sa, atom *a, int tim
                return res;
        } break;
        default:
-               snprintf(buf, BUFSIZ, "atom2sql(TYPE_%d) not implemented", 
a->data.vtype);
+               snprintf(buf, sizeof(buf), "atom2sql(TYPE_%d) not implemented", 
a->data.vtype);
        }
        return sa_strdup(sa, buf);
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to