Skip to content

Commit

Permalink
Fixed small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
felipelouza committed Sep 25, 2018
1 parent bf0375c commit 48da443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ void check(t_TEXT *Text, int_text n, char* c_file, int_text total){
t_TEXT *t_Aux = (t_TEXT*) malloc(sizeof(t_TEXT));

t_Aux->c_file = (char*) malloc(sizeof(char)*FILE_NAME);
sprintf(t_Aux->c_file, "%s.%d", c_file, total);
if(total) sprintf(t_Aux->c_file, "%s.%d", c_file, total);
else sprintf(t_Aux->c_file, "%s", c_file);

t_Aux->block_esa_size = BLOCK_ESA_SIZE;

Expand Down
1 change: 1 addition & 0 deletions src/egsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ int egsa(char *c_dir, char* c_file, int_text K, unsigned VALIDATE, unsigned VERB
c_start = clock();

printf("\n### VALIDATION ###\n");

check(Text, K, c_file, total);

time_stop(t_start, c_start);
Expand Down

0 comments on commit 48da443

Please sign in to comment.