fixed too large malloc
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 May 2012 10:47:19 +0000 (10:47 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 May 2012 10:47:19 +0000 (10:47 +0000)
src/html.c

index c9cb9d6..c5a0a2d 100644 (file)
@@ -145,7 +145,6 @@ static char *path_new(const char *dir, const char *file, const char *suffixe)
 {
        char *path = malloc(strlen(dir)+1+
                            strlen(file)+
-                           strlen(".html")+
                            (suffixe ? strlen(suffixe) : 0) +
                            1);