Fixed buffer overflow bug at pickup feature
authorAndreas Eversberg <jolly@eversberg.eu>
Tue, 28 Dec 2010 14:38:20 +0000 (15:38 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Tue, 28 Dec 2010 15:25:24 +0000 (16:25 +0100)
apppbx.cpp

index aaa02cb..fff80ce 100644 (file)
@@ -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++;