From 18ffa9136120f9b0768a23e19606c832fcc80ca3 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 15 Jul 2010 21:58:36 +0000 Subject: [PATCH] fix crash svn path=/trunk/netsurf/; revision=10644 --- render/directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);