From dee3127d79b3d27ccb69e729a616f5a68c441639 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 6 Jun 2011 22:27:10 +0000 Subject: Don't modify the DataType name within the structure. Update mimetypes file a bit, add some more descriptive text. svn path=/trunk/netsurf/; revision=12467 --- amiga/filetype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'amiga/filetype.c') diff --git a/amiga/filetype.c b/amiga/filetype.c index c1ab65914..bdc273365 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -362,7 +362,8 @@ APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mimetype) if (lerror != lwc_error_ok) return NULL; - dt_name_lwr = strlwr(dth->dth_Name); + dt_name_lwr = strdup(dth->dth_Name); + strlwr(dt_name_lwr); p = dt_name_lwr; while(*p != '\0') -- cgit v1.2.3