fix crash

svn path=/trunk/netsurf/; revision=10644
This commit is contained in:
Chris Young 2010-07-15 21:58:36 +00:00
parent 9201eac26e
commit 18ffa91361
1 changed files with 2 additions and 2 deletions

View File

@ -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);