From a2cfdd4c67bf406f3247ee6a046a3afa61a60bd5 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Tue, 5 Jun 2007 18:54:39 +0000 Subject: [PATCH] fix scan_font nonsense git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@877 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conky.c b/src/conky.c index 0eb9902d..c7bd154e 100644 --- a/src/conky.c +++ b/src/conky.c @@ -679,7 +679,7 @@ static const char *scan_bar(const char *args, int *w, int *h) static char *scan_font(const char *args) { - if (args && sizeof(args) < 127) { + if (args && *args) return strdup(args); } return NULL;