summaryrefslogtreecommitdiffstats
path: root/lib/libftp/FtpStor.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libftp/FtpStor.c')
-rw-r--r--lib/libftp/FtpStor.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libftp/FtpStor.c b/lib/libftp/FtpStor.c
index 9ddb326..9cd0e4e 100644
--- a/lib/libftp/FtpStor.c
+++ b/lib/libftp/FtpStor.c
@@ -2,9 +2,9 @@
Library for ftpd clients.(libftp)
Copyright by Oleg Orel
All rights reserved.
-
-This library is desined for free, non-commercial software creation.
-It is changeable and can be improved. The author would greatly appreciate
+
+This library is desined for free, non-commercial software creation.
+It is changeable and can be improved. The author would greatly appreciate
any advises, new components and patches of the existing programs.
Commercial usage is also possible with participation of it's author.
@@ -27,11 +27,11 @@ STATUS FtpStor (FTP * con , char * command ,
if ( (i=Ftpfopen(in,"rb")) == NULL )
return EXIT(con,LQUIT);
- if ( FtpTestFlag(con,FTP_REST) &&
+ if ( FtpTestFlag(con,FTP_REST) &&
(con->seek=FtpSize(con,out))<0 )
con->seek=0;
-
-
+
+
if ( FtpError(FtpData(con,command,out,"w")))
{
if (con->seek==0) return EXIT(con,con->errno);
@@ -40,12 +40,12 @@ STATUS FtpStor (FTP * con , char * command ,
if ( FtpError(FtpData(con,command,out,"w")) )
return EXIT(con,con->errno);
}
-
+
if (con->seek) fseek(i,con->seek,0);
-
- while ( (size=read ( fileno(i) , buffer, FTPBUFSIZ ))>0)
+
+ while ( (size=read ( fileno(i) , buffer, FTPBUFSIZ ))>0)
FtpWriteBlock(con,buffer,size);
-
+
Ftpfclose(i);
return FtpClose(con);
}
OpenPOWER on IntegriCloud