diff -cr version-2.0.0-patch01/bbftpc/treatcommand.c version-2.0.0-patch02/bbftpc/treatcommand.c *** version-2.0.0-patch01/bbftpc/treatcommand.c Wed Mar 28 17:21:19 2001 --- version-2.0.0-patch02/bbftpc/treatcommand.c Tue Apr 17 22:44:01 2001 *************** *** 5,10 **** --- 5,11 ---- treatcommand.c v 2.0.0 2001/03/01 - Creation of the routine + v 2.0.1 2001/04/17 - Correct put bug *****************************************************************************/ *************** *** 386,392 **** free(dupbuffercmd) ; return -1 ; } ! if ( (localfilename = (char *) malloc (strlen(action)+1)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","localfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; --- 387,393 ---- free(dupbuffercmd) ; return -1 ; } ! if ( (localfilename = (char *) malloc (strlen(startfn)+1)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","localfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; *************** *** 505,511 **** free(dupbuffercmd) ; return -1 ; } ! if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","localfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; --- 506,512 ---- free(dupbuffercmd) ; return -1 ; } ! if ( (remotefilename = (char *) malloc (strlen(startfn)+1)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","localfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; *************** *** 612,632 **** /* ** two names */ ! if ( (remotefilename = (char *) malloc (strlen(action)+1)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","remotefilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; - free(remotefilename) ; return -1 ; } ! if ( (curfilename = (char *) malloc (strlen(startfn)+1) ) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","curfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; free(remotefilename) ; return -1 ; } ! if ( (realfilename = (char *) malloc (strlen(startfn)+11)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","realfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; --- 613,632 ---- /* ** two names */ ! if ( (remotefilename = (char *) malloc (strlen(startfn)+1)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","remotefilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; return -1 ; } ! if ( (curfilename = (char *) malloc (strlen(action)+1) ) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","curfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; free(remotefilename) ; return -1 ; } ! if ( (realfilename = (char *) malloc (strlen(action)+11)) == NULL ) { printmessage(stderr,CASE_ERROR,35,timestamp,"Error allocating memory for %s : %s\n","realfilename",strerror(errno)) ; myexitcode = 35 ; free(dupbuffercmd) ; diff -cr version-2.0.0-patch01/includes/version.h version-2.0.0-patch02/includes/version.h *** version-2.0.0-patch01/includes/version.h Tue Apr 17 22:35:41 2001 --- version-2.0.0-patch02/includes/version.h Tue Apr 17 22:20:55 2001 *************** *** 9,13 **** *****************************************************************************/ ! #define VERSION "2.0.0-patch01" #define PROTOCOLVERSION 2 --- 9,13 ---- *****************************************************************************/ ! #define VERSION "2.0.0-patch02" #define PROTOCOLVERSION 2