From ca4f981f7b92b83bac16bda6522aebb8bec260f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Fri, 11 Aug 2006 18:33:18 +0000 Subject: [PATCH] it could have never worked ... --- org.glite.lb.client/test/producer_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.client/test/producer_test.cpp b/org.glite.lb.client/test/producer_test.cpp index c2199c5..33da719 100644 --- a/org.glite.lb.client/test/producer_test.cpp +++ b/org.glite.lb.client/test/producer_test.cpp @@ -55,14 +55,14 @@ private: void log_proto_server(int con, char *logline) { int i; - char b[4]; + char b[5]; char *buf; ssize_t size, retsize; // read DGLOG retsize = read(con, b, 5); CPPUNIT_ASSERT(retsize == 5); - CPPUNIT_ASSERT(b[0] = 'D' && b[1] == 'G' && b[2] == 'L' && b[3] == 'O' && b[4] == 'G'); + CPPUNIT_ASSERT(b[0] == 'D' && b[1] == 'G' && b[2] == 'L' && b[3] == 'O' && b[4] == 'G'); // read size (including '\0', little endian) for (i = 0; i < 4; i++) -- 1.8.2.3