From: hadaq Date: Mon, 28 Sep 2009 16:12:19 +0000 (+0000) Subject: bugfix in T function X-Git-Tag: v6.0~327 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9cc09c787f6f4436586b09cee77f421aa31b7962;p=trbnettools.git bugfix in T function --- 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) {