aboutsummaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorreinelt <>2004-02-01 18:08:50 +0000
committerreinelt <>2004-02-01 18:08:50 +0000
commita660b4ff3dab495f32ffe6922b010c833352cb02 (patch)
tree8543186fad3e5075b5a7f904318a416dd2c1d949 /cfg.c
parentf270a16b33144203d3568b2fa12e309c1bfc91eb (diff)
downloadlcd4linux-a660b4ff3dab495f32ffe6922b010c833352cb02.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!
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);
}
}