Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 0938dd15 authored by rswindell's avatar rswindell

Switched from 256 byte path vars to using MAX_PATH+1.

Eliminated unused function: readline_alloc().
parent aeb002a3
......@@ -61,7 +61,7 @@ BOOL allocerr(FILE* fp, char* error, long offset, char *fname, uint size)
/****************************************************************************/
BOOL read_node_cfg(scfg_t* cfg, char* error)
{
char c,str[256],fname[13];
char c,str[MAX_PATH+1],fname[13];
int i;
short n;
long offset=0;
......@@ -180,7 +180,7 @@ BOOL read_node_cfg(scfg_t* cfg, char* error)
/****************************************************************************/
BOOL read_main_cfg(scfg_t* cfg, char* error)
{
char str[256],fname[13],c;
char str[MAX_PATH+1],fname[13],c;
short i,j,n;
long offset=0;
FILE *instream;
......@@ -405,7 +405,7 @@ BOOL read_main_cfg(scfg_t* cfg, char* error)
/****************************************************************************/
BOOL read_msgs_cfg(scfg_t* cfg, char* error)
{
char str[256],fname[13],c;
char str[MAX_PATH+1],fname[13],c;
short i,j,k,n;
long offset=0;
FILE *instream;
......
......@@ -43,7 +43,7 @@
/****************************************************************************/
BOOL read_file_cfg(scfg_t* cfg, char* error)
{
char str[256],fname[13],c,cmd[LEN_CMD+1];
char str[MAX_PATH+1],fname[13],c,cmd[LEN_CMD+1];
short i,j,n;
long offset=0,t;
FILE *instream;
......@@ -420,7 +420,7 @@ BOOL read_file_cfg(scfg_t* cfg, char* error)
/****************************************************************************/
BOOL read_xtrn_cfg(scfg_t* cfg, char* error)
{
char str[256],fname[13],c;
char str[MAX_PATH+1],fname[13],c;
short i,j,n;
long offset=0;
FILE *instream;
......@@ -656,7 +656,7 @@ BOOL read_xtrn_cfg(scfg_t* cfg, char* error)
/****************************************************************************/
BOOL read_chat_cfg(scfg_t* cfg, char* error)
{
char str[256],fname[13];
char str[MAX_PATH+1],fname[13];
short i,j,n;
long offset=0;
FILE *instream;
......@@ -834,19 +834,6 @@ char *readline(long *offset, char *outstr, int maxlen, FILE *instream)
return(outstr);
}
#undef readline_alloc
char *readline_alloc(long *offset, char *outstr, int maxline, FILE *instream)
{
char str[257];
readline(offset,str,maxline,instream);
if((outstr=(char *)MALLOC(strlen(str)+1))==NULL)
return(NULL);
strcpy(outstr,str);
return(outstr);
}
/****************************************************************************/
/* Turns char string of flags into a long */
/****************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment