diff options
author | reinelt <> | 2004-02-01 18:08:50 +0000 |
---|---|---|
committer | reinelt <> | 2004-02-01 18:08:50 +0000 |
commit | a660b4ff3dab495f32ffe6922b010c833352cb02 (patch) | |
tree | 8543186fad3e5075b5a7f904318a416dd2c1d949 /cfg.c | |
parent | f270a16b33144203d3568b2fa12e309c1bfc91eb (diff) | |
download | lcd4linux-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); } } |