Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e87693f62b26fd89bd00bccd46d6266d71eafc51
Ticket: 219096ffffffffffffffffffffffffffffffffff
Patch to cleanup win/tclWinFCmd.c
User & Date: nobody on 2000-10-26 01:10:39
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5627 Bug
    Version: 8.4a1
    SubmitDate: '2000-05-22'
    LastModified: '2000-05-22'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Linux
    FixedDate: '2000-05-22'
    FixedInVersion: 8.4a1
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Mo DeJong
    
    
    CVS:
    
    Fri May 19
    
    
    Patch:
    
    Index: win/tclWinFCmd.c
    
    ===================================================================
    
    RCS file: /cvsroot/tcl/win/tclWinFCmd.c,v
    
    retrieving revision 1.7
    
    diff -u -r1.7 tclWinFCmd.c
    
    --- tclWinFCmd.c1999/12/09 14:44:111.7
    
    +++ tclWinFCmd.c2000/05/20 01:21:44
    
    @@ -237,7 +237,7 @@
    
    
         src = Tcl_WinTCharToUtf((TCHAR *) nativeSrcPath, -1, &srcString);
    
         dst = Tcl_WinTCharToUtf((TCHAR *) nativeDstPath, -1, &dstString);
    
    -    if (strncmp(src, dst, Tcl_DStringLength(&srcString)) == 0) {
    
    +    if (strncmp(src, dst, (size_t) Tcl_DStringLength(&srcString)) == 0) {
    
     /*
    
      * Trying to move a directory into itself.
    
      */
    
    @@ -658,7 +658,7 @@
    
     DoCreateDirectory(
    
         Tcl_DString *pathPtr)/* Pathname of directory to create (native). */
    
     {
    
    -    int error;
    
    +    DWORD error;
    
         CONST TCHAR *nativePath;
    
    
         nativePath = (TCHAR *) Tcl_DStringValue(pathPtr);
    
    @@ -1284,7 +1284,7 @@
    
     return TCL_ERROR;
    
         }
    
    
    -    *attributePtrPtr = Tcl_NewBooleanObj(result & attributeArray[objIndex]);
    
    +    *attributePtrPtr = Tcl_NewBooleanObj((int) (result & attributeArray[objIndex]));
    
         return TCL_OK;
    
     }
    
     
    
    @@ -1422,7 +1422,7 @@
    
          */
    
    
         Tcl_WinTCharToUtf(nativeName, -1, &ds);
    
    -    newv[i] = ckalloc(Tcl_DStringLength(&ds) + 1);
    
    +    newv[i] = ckalloc((unsigned int) (Tcl_DStringLength(&ds) + 1));
    
         lstrcpyA(newv[i], Tcl_DStringValue(&ds));
    
         Tcl_DStringFree(&ds);
    
         FindClose(handle);
    
    
    PatchFiles:
    
    win/tclWinFCmd.c
    
    
    
    
    Patched as noted for 8.4a1. 
    -- 05/22/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.4a1"
  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: "69. Other"
  10. title changed to: "Patch to cleanup win/tclWinFCmd.c"
  11. type changed to: "Bug"