projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae02e4e
)
Fixed buffer overflow bug at pickup feature
author
Andreas Eversberg
<jolly@eversberg.eu>
Tue, 28 Dec 2010 14:38:20 +0000
(15:38 +0100)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Tue, 28 Dec 2010 14:38:20 +0000
(15:38 +0100)
apppbx.cpp
patch
|
blob
|
history
diff --git
a/apppbx.cpp
b/apppbx.cpp
index
87e4f41
..
f92f167
100644
(file)
--- a/
apppbx.cpp
+++ b/
apppbx.cpp
@@
-3480,7
+3480,7
@@
int match_list(char *list, char *item)
while(42) {
/* eliminate white spaces */
while(42) {
/* eliminate white spaces */
- while (*list <= ' ')
+ while (*list
> '\0' && *list
<= ' ')
list++;
if (*list == ',') {
list++;
list++;
if (*list == ',') {
list++;