diff --git a/render/directory.c b/render/directory.c index 0c99656c4..c5f39fa5a 100644 --- a/render/directory.c +++ b/render/directory.c @@ -570,8 +570,8 @@ bool directory_convert(struct content *c) { strncpy(modtime, "-", sizeof modtime); if (directory) { - mimetype = (char*)messages_get( - "FileDirectory"); + mimetype = strdup((char*)messages_get( + "FileDirectory")); filesize = -1; } else { mimetype = fetch_mimetype(filepath);