--- utils.c	2009-05-17 17:44:19.000000000 +0200
+++ /tmp/utils.c	2009-06-13 15:19:20.000000000 +0200
@@ -4488,9 +4488,9 @@
 		/*printf("SEND RESULT: %d, SENT: %d\n",result,send_len);*/
 
 		/* get response */
-		recv_len=sizeof(recv_buf);
+		recv_len=sizeof(recv_buf)-1;
 		result=my_recvall(sd,recv_buf,&recv_len,2);
-		recv_buf[sizeof(recv_buf)]='\x0';
+		recv_buf[recv_len]='\x0';
 		/*printf("RECV RESULT: %d, RECEIVED: %d\n",result,recv_len);*/
 
 		/*
