parent
6ffc10a91e
commit
89a122ed16
|
|
@ -37,7 +37,7 @@ int parse_config(struct entry **entries){
|
||||||
j = &(*entries)[0].entrytype;
|
j = &(*entries)[0].entrytype;
|
||||||
|
|
||||||
char c='\0'; // Character Buffer
|
char c='\0'; // Character Buffer
|
||||||
char buff[500];
|
char buff[MAXSTRSIZE];
|
||||||
buff[0]='\0';
|
buff[0]='\0';
|
||||||
short int valtyp = CONTENTTYPE_BLANK;
|
short int valtyp = CONTENTTYPE_BLANK;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#define TMPDOWNLOADLOCATION "/tmp/rhostsdownload"
|
#define TMPDOWNLOADLOCATION "/tmp/rhostsdownload"
|
||||||
#define HOSTSLOCATION "/etc/hosts"
|
#define HOSTSLOCATION "/etc/hosts"
|
||||||
#define CONFIGFILE "/etc/rhosts/rhosts.cfg"
|
#define CONFIGFILE "/etc/rhosts/rhosts.cfg"
|
||||||
|
#define MAXSTRSIZE 500
|
||||||
#else
|
#else
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -29,7 +30,7 @@
|
||||||
|
|
||||||
struct entry{
|
struct entry{
|
||||||
int entrytype;
|
int entrytype;
|
||||||
char entry[500];
|
char entry[MAXSTRSIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
int parse_config(struct entry **entries);
|
int parse_config(struct entry **entries);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue