Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 15 Dec 2002 13:25:24 +0000 (13:25 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 15 Dec 2002 13:25:24 +0000 (13:25 +0000)
  psftp.c: In function `sftp_cmd_chmod':
  psftp.c:835: warning: too many arguments for format

git-svn-id: svn://svn.tartarus.org/sgt/putty@2333 cda61777-01e9-0310-a592-d414129be87e

psftp.c

diff --git a/psftp.c b/psftp.c
index 47f8b63..94d7364 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -832,7 +832,7 @@ int sftp_cmd_chmod(struct sftp_command *cmd)
            if (!(subset & 06777) && (perms &~ subset)) {
                printf("chmod: file mode '%.*s' contains no user/group/other"
                       " specifier and permissions other than 't' \n",
-                      strcspn(modebegin, ","), modebegin, *mode);
+                      strcspn(modebegin, ","), modebegin);
                return 0;
            }
            perms &= subset;