Changeset: d1bb2e886328 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d1bb2e886328 Modified Files: sql/backends/monet5/datacell/receptor.c Branch: Feb2013 Log Message:
Off-by-one error. diffs (21 lines): diff --git a/sql/backends/monet5/datacell/receptor.c b/sql/backends/monet5/datacell/receptor.c --- a/sql/backends/monet5/datacell/receptor.c +++ b/sql/backends/monet5/datacell/receptor.c @@ -420,7 +420,7 @@ bodyRestart: read it*/ if ((n = mnstr_readline(receptor, buf, MYBUFSIZ)) > 0) { - buf[n + 1] = 0; + buf[n] = 0; #ifdef _DEBUG_RECEPTOR_ mnstr_printf(RCout, "#Receptor buf [" SSZFMT "]:%s \n", n, buf); m = 0; @@ -448,7 +448,7 @@ bodyRestart: /* this code should be optimized for block-based reads */ while (cnt < counter) { if ((n = mnstr_readline(receptor, buf, MYBUFSIZ)) > 0) { - buf[n + 1] = 0; + buf[n] = 0; #ifdef _DEBUG_RECEPTOR_ mnstr_printf(RCout, "#Receptor buf [" SSZFMT "]:%s \n", n, buf); #endif _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list