diff --git a/config.c b/config.c index 9734649..7972a2a 100644 --- a/config.c +++ b/config.c @@ -13,24 +13,44 @@ int loadConfig(char *str_file, char **str_entry,int size) f_config = fopen(str_file,"r"); if(f_config != NULL) { - if(fgets(temp_str,256,f_config)!=NULL) + while(fgets(temp_str,256,f_config)!=NULL) { - if - - for(i=0;i