summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2017-03-13 19:16:18 +0100
committerMarc Schink <swo-dev@marcschink.de>2017-03-13 19:16:18 +0100
commit6ff154e5fb9acbfec141d27eb2ab9c3a575072d7 (patch)
treecb2fccb8fa14359e628b89eab152096cc6e80866
parentcd137376eb15886c7989d87b0318f86d54f352e2 (diff)
Make use of LIBSWO_MAX_SOURCE_ADDRESS
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a9bec50..b303c19 100644
--- a/src/main.c
+++ b/src/main.c
@@ -209,7 +209,7 @@ static gboolean parse_inst_filter_option(const gchar *option_name,
return FALSE;
}
- if (address < 0 || address > 31) {
+ if (address < 0 || address > LIBSWO_MAX_SOURCE_ADDRESS) {
g_critical("Source address out of range: %li.",
address);
g_strfreev(tokens);