projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Bugfixes
[citadel.git]
/
citadel
/
tools.c
diff --git
a/citadel/tools.c
b/citadel/tools.c
index 3a457ae6efc072a71c87bfa325699e6049df0bd0..21c1ce91eaef46358cad439e41c3d2bfb92d872f 100644
(file)
--- a/
citadel/tools.c
+++ b/
citadel/tools.c
@@
-388,7
+388,7
@@
void striplt(char *buf)
{
while ((strlen(buf) > 0) && (isspace(buf[0])))
strcpy(buf, &buf[1]);
- while (
isspace(buf[strlen(buf) - 1]
))
+ while (
(strlen(buf) > 0) && (isspace(buf[strlen(buf) - 1])
))
buf[strlen(buf) - 1] = 0;
}