mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
- 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
This commit is contained in:
parent
3b03ca2a76
commit
85fdf4bf7e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user