diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 1 | ||||
-rw-r--r-- | render/directory.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 4244f1337..c7c91fee3 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -19,6 +19,7 @@ #include <stdbool.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include "libxml/HTMLparser.h" #include "libxml/parserInternals.h" #include "netsurf/utils/config.h" diff --git a/render/directory.c b/render/directory.c index 1449b46f0..c64d05a77 100644 --- a/render/directory.c +++ b/render/directory.c @@ -101,8 +101,8 @@ bool directory_convert(struct content *c, int width, int height) { return false; } while ((entry = readdir(parent)) != NULL) { - if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) || - (!strcmp(entry->d_name, ".."))) + if (!strcmp(entry->d_name, ".") || + !strcmp(entry->d_name, "..")) continue; snprintf(buffer, sizeof(buffer), "<a href=\"%s/%s\">%s</a>\n", |