mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-08 10:34:31 +03:00
Fix BeOS build after the content_factory merge.
svn path=/trunk/netsurf/; revision=12290
This commit is contained in:
parent
27d4350054
commit
e679fc7bf5
@ -922,10 +922,11 @@ void nsbeos_gui_view_source(struct hlcache_handle *content, struct selection *se
|
|||||||
warn_user("IOError", strerror(err));
|
warn_user("IOError", strerror(err));
|
||||||
return;
|
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)
|
if (mime)
|
||||||
file.WriteAttr("BEOS:TYPE", B_MIME_STRING_TYPE, 0LL,
|
file.WriteAttr("BEOS:TYPE", B_MIME_STRING_TYPE, 0LL,
|
||||||
mime, strlen(mime) + 1);
|
mime_string, lwc_string_length(mime) + 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user