From 4d11f17130d897e673a9235116340ffe221ff1f7 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Wed, 10 Nov 2010 17:43:49 +0000 Subject: [PATCH] A small correction to the previous version. Compatibility issue. Boris --- libtrbnet/trbcmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0