projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* fix multiple compiler warnings...
[citadel.git]
/
webcit
/
webserver.c
diff --git
a/webcit/webserver.c
b/webcit/webserver.c
index 12a2ba71c210ac5d23eb8f5c926a61078f319a3c..6e3aef7ac746f95347b9f340f0903145a781149e 100644
(file)
--- a/
webcit/webserver.c
+++ b/
webcit/webserver.c
@@
-109,9
+109,11
@@
void load_redirs(char *filename) {
}
while (fgets(buf, sizeof buf, fp) != NULL) {
+ char *ch;
+
buf[strlen(buf)-1] = 0;
- ch
ar *ch
= strchr(buf, '#');
+ ch = strchr(buf, '#');
if (ch) strcpy(ch, "");
striplt(buf);
if (!IsEmptyStr(buf)) {