[yelp/gnome-3-0] Fix off-by-one error.



commit 69d004900739ebe164f6c67f5bc94953dc69cfa6
Author: Rupert Swarbrick <rswarbrick gmail com>
Date:   Tue May 3 12:54:35 2011 +0100

    Fix off-by-one error.
    
    Before, "yelp info:/usr/share/info/emacs-snapshot/emacs.gz" failed
    because we constructed a uri of the form "file::/usr/share...".

 libyelp/yelp-uri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 14b80e1..02ad54a 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -1076,7 +1076,7 @@ resolve_info_uri (YelpUri *uri)
     if (g_str_has_prefix (priv->res_arg, "info:/")) {
         gchar *newuri;
         priv->tmptype = YELP_URI_DOCUMENT_TYPE_INFO;
-        newuri = g_strdup_printf ("file:%s", priv->res_arg + 4);
+        newuri = g_strdup_printf ("file:%s", priv->res_arg + 5);
         g_free (priv->res_arg);
         priv->res_arg = newuri;
         resolve_file_uri (uri);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]