aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-03-23 21:25:16 +0800
committerChristian Persch <chpe@src.gnome.org>2005-03-23 21:25:16 +0800
commitc5c7cb259e5d21dcdccc028984e460551abdc902 (patch)
tree95558f9e7fb905431650df6a9e8eab17126036d1 /embed/mozilla/MozDownload.cpp
parent383bacff865a9248436340e5589bdbe146aa6332 (diff)
downloadgsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.tar
gsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.tar.gz
gsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.tar.bz2
gsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.tar.lz
gsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.tar.xz
gsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.tar.zst
gsoc2013-epiphany-c5c7cb259e5d21dcdccc028984e460551abdc902.zip
Fix stupid typos. Fixes bug #171197; thanks to Jean-François Rameau for
2005-03-23 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Fix stupid typos. Fixes bug #171197; thanks to Jean-François Rameau for finding the cause.
Diffstat (limited to 'embed/mozilla/MozDownload.cpp')
-rw-r--r--embed/mozilla/MozDownload.cpp4
1 files changed, 2 insertions, 2 deletions
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:<usertime>:<helperapp id> */
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);