- Remove debug printf's from RSS code
authorRoman Bogorodskiy <mirrorbox@users.sourceforge.net>
Sun, 6 May 2007 12:33:38 +0000 (12:33 +0000)
committerRoman Bogorodskiy <mirrorbox@users.sourceforge.net>
Sun, 6 May 2007 12:33:38 +0000 (12:33 +0000)
- 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

index 0c0d200..0d7a27f 100644 (file)
@@ -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);