]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
bugfix in T function
authorhadaq <hadaq>
Mon, 28 Sep 2009 16:12:19 +0000 (16:12 +0000)
committerhadaq <hadaq>
Mon, 28 Sep 2009 16:12:19 +0000 (16:12 +0000)
libtrbnet/trbcmd.c

index a7488d27e24202b18b61bad3ec3eb2370fa14a89..e3280d34a26a742d874edab96bae38752497d5d3 100644 (file)
@@ -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) {