aboutsummaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-02-01 18:08:50 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-02-01 18:08:50 +0000
commit92b42b9fa4a085cf62728379c144ccd6583895d6 (patch)
tree8543186fad3e5075b5a7f904318a416dd2c1d949 /cfg.c
parentb115ee6dd90b5ba9588ab1814144946598901e85 (diff)
downloadlcd4linux-92b42b9fa4a085cf62728379c144ccd6583895d6.tar.gz
[lcd4linux @ 2004-02-01 18:08:50 by reinelt]
removed strtok() from layout processing (took me hours to find this bug) further strtok() removind should be done! git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@351 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cfg.c b/cfg.c
index 0593c36..fd94052 100644
--- a/cfg.c
+++ b/cfg.c
@@ -1,4 +1,4 @@
-/* $Id: cfg.c,v 1.32 2004/01/30 20:57:55 reinelt Exp $^
+/* $Id: cfg.c,v 1.33 2004/02/01 18:08:50 reinelt Exp $^
*
* config file stuff
*
@@ -23,6 +23,10 @@
*
*
* $Log: cfg.c,v $
+ * Revision 1.33 2004/02/01 18:08:50 reinelt
+ * removed strtok() from layout processing (took me hours to find this bug)
+ * further strtok() removind should be done!
+ *
* Revision 1.32 2004/01/30 20:57:55 reinelt
* HD44780 patch from Martin Hejl
* dmalloc integrated
@@ -393,7 +397,7 @@ char *l4l_cfg_list (char *section)
for (i=0; i<nConfig; i++) {
if (strncasecmp(Config[i].key, key, len)==0) {
list=realloc(list, strlen(list)+strlen(Config[i].key)-len+2);
- strcat (list, "|");
+ if (*list!='\0') strcat (list, "|");
strcat (list, Config[i].key+len);
}
}