[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:
4
news.c
4
news.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: news.c,v 1.12 2003/01/15 16:11:43 ukai Exp $ */
|
||||
/* $Id: news.c,v 1.13 2003/01/15 16:14:41 ukai Exp $ */
|
||||
#include "fm.h"
|
||||
#include "myctype.h"
|
||||
#include <stdio.h>
|
||||
@@ -44,7 +44,7 @@ news_command(News * news, 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), news->wf);
|
||||
fwrite(tmp->ptr, sizeof(char), tmp->length, news->wf);
|
||||
fflush(news->wf);
|
||||
}
|
||||
if (!status)
|
||||
|
Reference in New Issue
Block a user