From 2316eb86a54a250a8fd01c72c477159e4fbb7556 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 23 Mar 2005 13:24:54 +0000 Subject: =?UTF-8?q?Fix=20stupid=20typos.=20Fixes=20bug=20#171197;=20thanks?= =?UTF-8?q?=20to=20Jean-Fran=C3=A7ois=20Rameau=20for?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-03-23 Christian Persch * embed/mozilla/MozDownload.cpp: Fix stupid typos. Fixes bug #171197; thanks to Jean-François Rameau for finding the cause. --- embed/mozilla/MozDownload.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embed') diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 081a5d5d0..669455615 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -403,11 +403,11 @@ MozDownload::OnStateChange (nsIWebProgress *aWebProgress, nsIRequest *aRequest, /* HACK we use the application description to decide if we have to open the saved file */ - if (g_str_has_suffix (cDesc.get(), "gnome-default:")) + if (g_str_has_prefix (cDesc.get(), "gnome-default:")) { /* Format gnome-default:: */ char **str = g_strsplit (cDesc.get(), ":", -1); - g_return_val_if_fail (g_strv_length (str) != 3, NS_ERROR_FAILURE); + g_return_val_if_fail (g_strv_length (str) == 3, NS_ERROR_FAILURE); char *end; guint32 user_time = strtoul (str[1], &end, 0); -- cgit v1.2.3