From: hadeshyp Date: Wed, 10 Nov 2010 17:43:49 +0000 (+0000) Subject: A small correction to the previous version. Compatibility issue. X-Git-Tag: v6.0~181 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=4d11f17130d897e673a9235116340ffe221ff1f7;p=trbnettools.git A small correction to the previous version. Compatibility issue. Boris --- diff --git a/libtrbnet/trbcmd.c b/libtrbnet/trbcmd.c index 9c001a9..d81f260 100644 --- a/libtrbnet/trbcmd.c +++ b/libtrbnet/trbcmd.c @@ -25,7 +25,7 @@ static int hexMode = HEXMODE; -static const char trbcmd_version[] = "$Revision: 2.61 $"; +static const char trbcmd_version[] = "$Revision: 2.62 $"; #define BACKLOG 10 static uint16_t tcp_port = 55555; @@ -1423,7 +1423,7 @@ int main(int argc, char **argv) } - msgLen -= 3; + msgLen -= 2; command[msgLen] = '\0'; char *p;