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 14:38:20 +0000 (15:38 +0100)
apppbx.cpp

index 87e4f41..f92f167 100644 (file)
@@ -3480,7 +3480,7 @@ int match_list(char *list, char *item)
 
        while(42) {
                /* eliminate white spaces */
-               while (*list <= ' ')
+               while (*list > '\0' && *list <= ' ')
                        list++;
                if (*list == ',') {
                        list++;