[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>
This commit is contained in:
Fumitoshi UKAI
2003-01-15 16:14:40 +00:00
parent dfd33cccd5
commit 9e49e56287
3 changed files with 11 additions and 5 deletions

4
ftp.c
View File

@@ -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)