Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5505ad0136641e028df944f35322273bdc2f528f
Ticket: 675356ffffffffffffffffffffffffffffffffff
clock clicks -milliseconds logic confused
User & Date: nobody on 2003-01-27 11:05:15
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    tclClock.c
    
    88:    switch ((enum command) index) {
    89:     case COMMAND_CLICKS:    {               /* clicks 
    */
    90:         int forceMilli = 0;
    91:
    92:         if (objc == 3) {
    93:             format = Tcl_GetStringFromObj(objv[2], 
    &index);
    94:             if (strncmp(format, "-milliseconds",
    95:                     (unsigned int) index) == 0) {
    96:                 forceMilli = 1;
    97:             } else {
    98:                 Tcl_AppendStringsToObj(resultPtr,
    99:                         "bad switch \"", format,
    100:                        "\": must be -milliseconds", (char *) 
    NULL);
    101:                return TCL_ERROR;
    102:            }
    
    The 'n' argument to strncmp should not be index (which 
    happens to be 0), but presumably strlen("-milliseconds")
    ==13.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "06. Time Measurement"
  10. title changed to: "clock clicks -milliseconds logic confused"
  11. type changed to: "Bug"