diff options
-rw-r--r-- | content/dirlist.c | 2 | ||||
-rw-r--r-- | render/imagemap.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/content/dirlist.c b/content/dirlist.c index 433e21026..0c0e2aee2 100644 --- a/content/dirlist.c +++ b/content/dirlist.c @@ -27,8 +27,6 @@ #include "content/dirlist.h" #include "utils/messages.h" -static const char footer[] = "</div>\n</body>\n</html>\n"; - static int dirlist_filesize_calculate(unsigned long *bytesize); static int dirlist_filesize_value(unsigned long bytesize); static char* dirlist_filesize_unit(unsigned long bytesize); diff --git a/render/imagemap.c b/render/imagemap.c index 433ae68be..870db7e3a 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -524,7 +524,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url, } num++; - val = strtok('\0', ","); + val = strtok(NULL, ","); } break; case IMAGEMAP_CIRCLE: @@ -543,7 +543,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url, } num++; - val = strtok('\0', ","); + val = strtok(NULL, ","); } break; case IMAGEMAP_POLY: @@ -553,7 +553,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url, while (val != NULL) { x = atoi(val); - val = strtok('\0', ","); + val = strtok(NULL, ","); if (val == NULL) break; @@ -577,7 +577,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url, new_map->bounds.poly.ycoords[num - 1] = y; num++; - val = strtok('\0', ","); + val = strtok(NULL, ","); } new_map->bounds.poly.num = num - 1; |