diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-02-01 18:08:50 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-02-01 18:08:50 +0000 |
commit | 92b42b9fa4a085cf62728379c144ccd6583895d6 (patch) | |
tree | 8543186fad3e5075b5a7f904318a416dd2c1d949 /cfg.c | |
parent | b115ee6dd90b5ba9588ab1814144946598901e85 (diff) | |
download | lcd4linux-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.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); } } |