aboutsummaryrefslogtreecommitdiffstats
path: root/ftp.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-15 16:14:40 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-15 16:14:40 +0000
commit9e49e562879472dbae334c47ca5783eac3f85591 (patch)
treea2a85fc2da9bda3c27ce2fbd133e5a57a3390b38 /ftp.c
parent[w3m-dev 03640] Re: cleanup (don't close connection of news server) (diff)
downloadw3m-9e49e562879472dbae334c47ca5783eac3f85591.tar.gz
w3m-9e49e562879472dbae334c47ca5783eac3f85591.zip
[w3m-dev 03641] Re: cleanup (don't close connection of news server)
* ftp.c (ftp_command): fix fwrite arg * news.c (news_command): fix fwrite arg From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'ftp.c')
-rw-r--r--ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftp.c b/ftp.c
index 447f210..212dab9 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,4 +1,4 @@
-/* $Id: ftp.c,v 1.24 2003/01/15 16:11:43 ukai Exp $ */
+/* $Id: ftp.c,v 1.25 2003/01/15 16:14:41 ukai Exp $ */
#include <stdio.h>
#include <pwd.h>
#include <Str.h>
@@ -47,7 +47,7 @@ ftp_command(FTP ftp, char *cmd, char *arg, int *status)
tmp = Sprintf("%s %s\r\n", cmd, arg);
else
tmp = Sprintf("%s\r\n", cmd);
- fwrite(tmp->ptr, tmp->length, sizeof(char), ftp->wf);
+ fwrite(tmp->ptr, sizeof(char), tmp->length, ftp->wf);
fflush(ftp->wf);
}
if (!status)