Update of /cvsroot/monetdb/sql/src/backends/monet5/merovingian
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv27498
Modified Files:
control.c
Log Message:
do not return the trailing newline
U control.c
Index: control.c
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/control.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- control.c 27 Aug 2009 15:14:52 -0000 1.1
+++ control.c 9 Sep 2009 11:46:27 -0000 1.2
@@ -66,7 +66,7 @@
send(sock, buf, len, 0);
if ((len = recv(sock, buf, sizeof(buf), 0)) <= 0)
return(strdup("no response from merovingian\n"));
- buf[len] = '\0';
+ buf[len == 0 ? 0 : len - 1] = '\0';
close(sock);
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins