Changeset: 36f3c3a9f321 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=36f3c3a9f321 Modified Files: monetdb5/modules/mal/calc.c Branch: default Log Message:
Avoid potential non-null terminated string diffs (12 lines): diff --git a/monetdb5/modules/mal/calc.c b/monetdb5/modules/mal/calc.c --- a/monetdb5/modules/mal/calc.c +++ b/monetdb5/modules/mal/calc.c @@ -119,7 +119,7 @@ CMDvarADDstr(str *ret, str *s1, str *s2) *ret= GDKstrdup(str_nil); return MAL_SUCCEED; } - s = GDKmalloc((l1 = strlen(*s1)) + strlen(*s2) + 1); + s = GDKzalloc((l1 = strlen(*s1)) + strlen(*s2) + 1); if (s == NULL) return mythrow(MAL, "calc.+", MAL_MALLOC_FAIL); strcpy(s, *s1); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list