From 85fdf4bf7eed2972c58d38bfc61c2c8c924ffc18 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sun, 6 May 2007 12:33:38 +0000 Subject: [PATCH] - Remove debug printf's from RSS code - Don't eat last char of the RSS title git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@865 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conky.c b/src/conky.c index 0c0d200f..0d7a27f5 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3123,7 +3123,6 @@ static struct text_object *construct_text_object(const char *s, const char *arg, char *uri = (char *)malloc(64 * sizeof(char *)); argc = sscanf(arg, "%63s %d", uri, &count); - printf("argc: %d, uri: %s, count: %d\n", argc, uri, count); obj->data.rss.uri = uri; obj->data.rss.count = count; } else @@ -4300,7 +4299,7 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object * } /* we don't need last \n */ - titles[strlen(titles)-2] = '\0'; + titles[strlen(titles)-1] = '\0'; snprintf(p, p_max_size, "%s", titles);