From e679fc7bf584007f9c6df06b886a88ab526cb83e Mon Sep 17 00:00:00 2001 From: François Revel Date: Sat, 7 May 2011 17:17:54 +0000 Subject: Fix BeOS build after the content_factory merge. svn path=/trunk/netsurf/; revision=12290 --- beos/beos_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'beos/beos_gui.cpp') diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp index 388bc598f..e3d65c41b 100644 --- a/beos/beos_gui.cpp +++ b/beos/beos_gui.cpp @@ -922,10 +922,11 @@ void nsbeos_gui_view_source(struct hlcache_handle *content, struct selection *se warn_user("IOError", strerror(err)); return; } - const char *mime = content_get_mime_type(content); + lwc_string *mime = content_get_mime_type(content); + const char *mime_string = lwc_string_data(mime); if (mime) file.WriteAttr("BEOS:TYPE", B_MIME_STRING_TYPE, 0LL, - mime, strlen(mime) + 1); + mime_string, lwc_string_length(mime) + 1); } -- cgit v1.2.3