summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupert Swarbrick <rswarbrick@gmail.com>2011-05-03 12:54:35 +0100
committerShaun McCance <shaunm@gnome.org>2011-05-03 08:15:07 -0400
commitf4de029091f89a6b5830a153ca7fce88635a4edd (patch)
treea3cb0106a72147b05d6a9ae04382795af21df8ee
parent9e409279712ecd1a64186a00d50587fba36e9d9c (diff)
downloadyelp-f4de029091f89a6b5830a153ca7fce88635a4edd.tar.gz
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...".
-rw-r--r--libyelp/yelp-uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index 14b80e14..02ad54af 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);