[yelp] Fix off-by-one error.
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Fix off-by-one error.
- Date: Tue, 3 May 2011 12:07:20 +0000 (UTC)
commit f4de029091f89a6b5830a153ca7fce88635a4edd
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]