diff --git a/build/modules/configRead.o b/build/modules/configRead.o index ce2895a..e93e06e 100644 Binary files a/build/modules/configRead.o and b/build/modules/configRead.o differ diff --git a/build/uFTP b/build/uFTP index 0a46f11..af340c3 100755 Binary files a/build/uFTP and b/build/uFTP differ diff --git a/ftpData.c b/ftpData.c index 0c95c2c..b4aa33b 100644 --- a/ftpData.c +++ b/ftpData.c @@ -698,4 +698,4 @@ int isCharInString(char *theString, int stringLen, char theChar) } return -1; -} \ No newline at end of file +} diff --git a/library/configRead.c b/library/configRead.c index e584bfd..c75139b 100644 --- a/library/configRead.c +++ b/library/configRead.c @@ -122,7 +122,7 @@ void initFtpData(ftpDataType *ftpData) srand(time(NULL)); ftpData->connectedClients = 0; - ftpData->clients = (clientDataType *) malloc( sizeof(clientDataType) * ftpData->ftpParameters.maxClients); + ftpData->clients = (clientDataType *) calloc( sizeof(clientDataType), ftpData->ftpParameters.maxClients); ftpData->serverIp.ip[0] = 127; ftpData->serverIp.ip[1] = 0;