diff options
Diffstat (limited to 'lib/libftp/FtpDebug.c')
-rw-r--r-- | lib/libftp/FtpDebug.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libftp/FtpDebug.c b/lib/libftp/FtpDebug.c index 98686b9..d2b5af9 100644 --- a/lib/libftp/FtpDebug.c +++ b/lib/libftp/FtpDebug.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. @@ -29,22 +29,22 @@ STATUS FtpDebugDebug(FTP *ftp,int n, char * Message) { String tmp; - + strcpy(tmp,Message); - + if (strncmp(tmp,"PASS ",5)==0) { char *p=tmp+5; while ( *p != '\0') *p++='*'; }; - + FtpLog(ftp->title,tmp); return 1; } STATUS FtpDebugError(FTP *ftp,int n, char * Message) { - + FtpLog("FtpDebugError",""); FtpLog(ftp->title,Message); if ( ! FtpTestFlag(ftp,FTP_NOEXIT)) @@ -74,7 +74,7 @@ STATUS FtpLog(char *name,char *str) int FtpHash(FTP *ftp, unsigned long chars) { - + if (chars==0) return ftp->counter=0; ftp->counter+=chars; fprintf(stdout,"%10u bytes transfered\r",(unsigned int)ftp->counter); @@ -88,7 +88,7 @@ STATUS FtpBadReply550(char *s) if( (strstr(s,"unreachable")!=NULL) || (strstr(s,"Broken pipe")!=NULL) - ) + ) return 0; return 1; } |