summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-12-28 15:38:20 +0100
committerAndreas Eversberg2010-12-28 16:25:24 +0100
commitfc716483209769069666cb50fc4b3c924a2dec97 (patch)
tree2fdb196d3fc769daa8bb08786efe60c5e5ef500e
parentFixed null-pointer bug when GSM support is disabled (diff)
downloadlcr-fc716483209769069666cb50fc4b3c924a2dec97.tar.gz
lcr-fc716483209769069666cb50fc4b3c924a2dec97.tar.xz
lcr-fc716483209769069666cb50fc4b3c924a2dec97.zip
Fixed buffer overflow bug at pickup feature
-rw-r--r--apppbx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apppbx.cpp b/apppbx.cpp
index aaa02cb..fff80ce 100644
--- a/apppbx.cpp
+++ b/apppbx.cpp
@@ -3509,7 +3509,7 @@ int match_list(char *list, char *item)
while(42) {
/* eliminate white spaces */
- while (*list <= ' ')
+ while (*list > '\0' && *list <= ' ')
list++;
if (*list == ',') {
list++;