]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 15 Dec 2002 13:25:24 +0000 (13:25 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
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

[originally from svn r2333]

psftp.c

diff --git a/psftp.c b/psftp.c
index 47f8b63466f40f767630bf4d324d231b011f3ac8..94d7364b93859e80b60d48e86a96a2c9a804bf0d 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;