summaryrefslogtreecommitdiff
blob: d7a8df95f9a5647864d454d7a0e4c225490bfdcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
X-Git-Url: http://git.omp.am/?p=conky.git;a=blobdiff_plain;f=src%2Fconky.c;h=790e93c599414099ebca1f1ac6dafc1d54a8a2cb;hp=7e61f51d0197a1f700a0e0a77bf89575685cf22b;hb=9c5e5d86bd74465ca1b6f037b084bdb0eda453f7;hpb=c8e687406502be8c6f4e75b077113591823405f0

diff --git a/src/conky.c b/src/conky.c
index 7e61f51..790e93c 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 = ' ';
 				}