summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-07 17:17:54 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-07 17:17:54 +0000
commite679fc7bf584007f9c6df06b886a88ab526cb83e (patch)
tree5e7dd7c608d10dc03a133e87a8ae6e330bcdd2bb /beos
parent27d4350054a6fd6607069526711903fbfcd106b1 (diff)
downloadnetsurf-e679fc7bf584007f9c6df06b886a88ab526cb83e.tar.gz
netsurf-e679fc7bf584007f9c6df06b886a88ab526cb83e.tar.bz2
Fix BeOS build after the content_factory merge.
svn path=/trunk/netsurf/; revision=12290
Diffstat (limited to 'beos')
-rw-r--r--beos/beos_gui.cpp5
1 files changed, 3 insertions, 2 deletions
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);
}