one-off bugfix on config parsing

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@24 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Matti Aarnio 2008-02-29 00:35:36 +00:00
parent b61cd9e21a
commit 79b17a6bb4
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ int do_listen(struct listen_config_t **lq, int argc, char **argv)
l->port = port;
for (i = 0; i < (sizeof(l->filters)/sizeof(l->filters[0])); ++i) {
l->filters[i] = NULL;
if (argc - 6 >= i) {
if (argc - 6 > i) {
l->filters[i] = hstrdup(argv[i+6]);
}
}