Commit 3be4e41f authored by mbionchi's avatar mbionchi

not sure why i was allowing dirs in read_sections but it is no longer the case

parent 5dc24413
......@@ -107,7 +107,7 @@ struct section **read_sections(DIR *dir, char *dirname, size_t *nmemb) {
#else
lstat(filename, &sb);
#endif
if ((sb.st_mode & S_IFMT) == S_IFREG || (sb.st_mode & S_IFMT) == S_IFDIR) {
if ((sb.st_mode & S_IFMT) == S_IFREG) {
if (i >= *nmemb) {
*nmemb += linear_step;
base = realloc(base, *nmemb*sizeof(struct section*));
......
......@@ -64,7 +64,9 @@ void splash(WINDOW *window, char *path) {
int ch = getch();
while (ch == ERR) {
anim_tick(&splash_window);
if (splash_window.content.type == STATIC) {
anim_tick(&splash_window);
}
ch = getch();
}
free_content(&splash_window);
......
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