Overview
| Artifact ID: | 5505ad0136641e028df944f35322273bdc2f528f |
|---|---|
| Ticket: | 675356ffffffffffffffffffffffffffffffffff
clock clicks -milliseconds logic confused |
| User & Date: | nobody on 2003-01-27 11:05:15 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "06. Time Measurement"
- title changed to: "clock clicks -milliseconds logic confused"
- type changed to: "Bug"