Changeset: 0eaf84f092cd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0eaf84f092cd
Modified Files:
monetdb5/modules/mal/tablet.c
Branch: Jul2015
Log Message:
make sure we have a eos when outputting the errors in tablet
diffs (11 lines):
diff --git a/monetdb5/modules/mal/tablet.c b/monetdb5/modules/mal/tablet.c
--- a/monetdb5/modules/mal/tablet.c
+++ b/monetdb5/modules/mal/tablet.c
@@ -896,6 +896,7 @@ SQLinsert_val(READERtask *task, int col,
BUNappend(task->cntxt->error_msg, buf, FALSE);
BUNappend(task->cntxt->error_input, err, FALSE);
snprintf(buf, BUFSIZ, "line " LLFMT " field %d '%s'
expected in '%s'", row, col, fmt->type, s);
+ buf[BUFSIZ-1]=0;
if (task->as->error == NULL && (task->as->error =
GDKstrdup(buf)) == NULL)
task->as->error = M5OutOfMemory;
task->rowerror[idx]++;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list