aboutsummaryrefslogtreecommitdiffstats
path: root/widget_text.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-22 07:57:45 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-22 07:57:45 +0000
commit4c88d373fbdae381318e6e5da9c88e5de98d7f7a (patch)
tree13a5b0ebc7c53e2f7214969f601e62161020a899 /widget_text.c
parent157395d9d4247afc971477497dcc51ef5441e660 (diff)
downloadlcd4linux-4c88d373fbdae381318e6e5da9c88e5de98d7f7a.tar.gz
[lcd4linux @ 2004-01-22 07:57:45 by reinelt]
several bugs fixed where segfaulting on layout>display Crystalfontz driver optimized, 632 display already works git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@334 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_text.c')
-rw-r--r--widget_text.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/widget_text.c b/widget_text.c
index aa30eec..f20105c 100644
--- a/widget_text.c
+++ b/widget_text.c
@@ -1,4 +1,4 @@
-/* $Id: widget_text.c,v 1.7 2004/01/20 04:51:39 reinelt Exp $
+/* $Id: widget_text.c,v 1.8 2004/01/22 07:57:45 reinelt Exp $
*
* simple text widget handling
*
@@ -21,6 +21,10 @@
*
*
* $Log: widget_text.c,v $
+ * Revision 1.8 2004/01/22 07:57:45 reinelt
+ * several bugs fixed where segfaulting on layout>display
+ * Crystalfontz driver optimized, 632 display already works
+ *
* Revision 1.7 2004/01/20 04:51:39 reinelt
* moved generic stuff from drv_MatrixOrbital to drv_generic
* implemented new-stylish bars which are nearly finished
@@ -178,7 +182,7 @@ void widget_text_update (void *Self)
int update;
// evaluate prefix
- if (T->prefix!=NULL && strlen(T->prefix)>0) {
+ if (T->prefix!=NULL && *(T->prefix)!='\0') {
Eval(T->prefix, &result);
preval=strdup(R2S(&result));
DelResult (&result);