1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Fixed printf format errors.

This commit is contained in:
Bruce Evans 1998-06-30 18:12:26 +00:00
parent 9f15c7ece5
commit f39030436d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37305

View File

@ -1028,7 +1028,7 @@ GetPermissionsAttribute(interp, objIndex, fileName, attributePtrPtr)
return TCL_ERROR;
}
sprintf(returnString, "%0#5lo", (statBuf.st_mode & 0x00007FFF));
sprintf(returnString, "%0#5o", (int)(statBuf.st_mode & 0x00007FFF));
*attributePtrPtr = Tcl_NewStringObj(returnString, -1);