Commit afd44ce3 authored by Cédric Bosdonnat's avatar Cédric Bosdonnat

Get gvir_sandbox_util_guess_image_format search for the last '.'

gvir_sandbox_util_guess_image_format is failing to find the extension
in paths like /tmp/tmp.mg0tQ1JLFl/mine.img
parent 7995d0c1
......@@ -40,7 +40,7 @@ gint gvir_sandbox_util_guess_image_format(const gchar *path,
{
gchar *tmp;
if ((tmp = strchr(path, '.')) == NULL) {
if ((tmp = g_strrstr(path, ".")) == NULL) {
g_set_error(error, GVIR_SANDBOX_UTIL_ERROR, 0,
_("Cannot identify file extension in '%s'"), path);
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment