Patch to cleanup win/tclWinFCmd.c
Closed / Fixed219096ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:39
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
welch Closed ticket [219096ffff].
[History diff]2000-10-26 08:34:56
dgp Ticket [219096ffff]: 3 changes
[History diff]2001-04-20 02:45:29
Log in (anonymous is fine) to add a comment.