From 9c5e5d86bd74465ca1b6f037b084bdb0eda453f7 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Wed, 7 Apr 2010 10:14:45 -0700 Subject: [PATCH] Fix bug in $if_existing. Ref: http://sourceforge.net/tracker/?func=detail&aid=2979974&group_id=143975&atid=757308 --- src/conky.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conky.c b/src/conky.c index 7e61f51d..790e93c5 100644 --- a/src/conky.c +++ b/src/conky.c @@ -463,7 +463,7 @@ int check_contains(char *f, char *s) } fclose(where); } else { - NORM_ERR("Could not open the file"); + NORM_ERR("Could not open the file '%s'", f); } return ret; } @@ -1330,7 +1330,7 @@ void generate_text_internal(char *p, int p_max_size, DO_JUMP; } else if (spc) { *spc = '\0'; - if (check_contains(obj->data.s, spc + 1)) + if (!check_contains(obj->data.s, spc + 1)) DO_JUMP; *spc = ' '; }