From 9cc09c787f6f4436586b09cee77f421aa31b7962 Mon Sep 17 00:00:00 2001 From: hadaq Date: Mon, 28 Sep 2009 16:12:19 +0000 Subject: [PATCH] bugfix in T function --- libtrbnet/trbcmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libtrbnet/trbcmd.c b/libtrbnet/trbcmd.c index a7488d2..e3280d3 100644 --- a/libtrbnet/trbcmd.c +++ b/libtrbnet/trbcmd.c @@ -16,7 +16,7 @@ static int hexMode = HEXMODE; -static const char trbcmd_version[] = "$Revision: 2.26 $"; +static const char trbcmd_version[] = "$Revision: 2.27 $"; /* ------ MAIN ---------------------------------------------------------- */ @@ -596,10 +596,10 @@ int main(int argc, char ** argv) exit(EXIT_FAILURE); } - type = strtoul(cmd[2], NULL, hexMode == 1 ? 16 : 0) & 0x0f; - random = strtoul(cmd[3], NULL, hexMode == 1 ? 16 : 0); - info = strtoul(cmd[4], NULL, hexMode == 1 ? 16 : 0); - number = strtoul(cmd[5], NULL, hexMode == 1 ? 16 : 0); + type = strtoul(cmd[1], NULL, hexMode == 1 ? 16 : 0) & 0x0f; + random = strtoul(cmd[2], NULL, hexMode == 1 ? 16 : 0); + info = strtoul(cmd[3], NULL, hexMode == 1 ? 16 : 0); + number = strtoul(cmd[4], NULL, hexMode == 1 ? 16 : 0); /* DEBUG Info */ if (trb_debug > 0) { -- 2.43.0