From 61a154807b607b4b5f70b973004b4b1dd4e286c6 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 5 May 2005 11:55:53 +0000 Subject: fix --- sshfs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sshfs.c') diff --git a/sshfs.c b/sshfs.c index 92b3c43..9a33d9a 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1124,8 +1124,6 @@ static int sshfs_truncate(const char *path, off_t size) buf_free(&handle); } } else { - buf_init(&buf, 0); - buf_add_path(&buf, path); buf_add_uint32(&buf, SSH_FILEXFER_ATTR_SIZE); buf_add_uint64(&buf, size); err = sftp_request(SSH_FXP_SETSTAT, &buf, SSH_FXP_STATUS, NULL); -- cgit v1.2.3