Skip to content

Commit

Permalink
fix file count
Browse files Browse the repository at this point in the history
  • Loading branch information
madosuki committed Dec 1, 2020
1 parent 267ae49 commit 6b08588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int get_file_count_and_set_image_path_list(struct dirent **src, const int size,

image_path_list[count - 1] = (char*)calloc(last_size, 1);
strcpy(image_path_list[count - 1], final_path);
printf("%d, %d, %s\n\n", i, count - 1, image_path_list[count - 1]);
// printf("%d, %d, %s\n\n", i, count - 1, image_path_list[count - 1]);
}

free(final_path);
Expand Down Expand Up @@ -216,7 +216,7 @@ int get_file_count_and_set_image_path_list(struct dirent **src, const int size,

// free_array_with_alloced((void**)image_path_list, count);

return count + 1;
return count;
}

int create_image_path_list(char **image_path_list, const char *dirname)
Expand Down

0 comments on commit 6b08588

Please sign in to comment.