Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92ab606de94d5fdee8cfa76125d4956fc38bbd7c
Ticket: 3cdcfa40809ffd2b9d3d71f77dc57da615243730
tclWinFile.c does not compile with Win VC6
User & Date: oehhar on 2014-07-17 09:57:57
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    For me, tclWinFile.c does not compile, due to a signed/unsigned issue.
    The patch is attached but should be checked.
    This is also a marker for me, no time to look to now.
    len is int, strlen returns something unsigned...
    
    <verbatim>
    @@ -2928,7 +2928,7 @@
     
         str = Tcl_GetStringFromObj(validPathPtr, &len);
     
    -    if (strlen(str)!=len) {
    +    if (((int)strlen(str))!=len) {
     	/* String contains NUL-bytes. This is invalid. */
     	return 0;
         }
    </verbatim>
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "oehhar"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "oehhar"
  13. subsystem changed to: "52. Portability Support"
  14. title changed to: "tclWinFile.c does not compile with Win VC6"
  15. type changed to: "Bug"