From 90d8e71b83a8eac13bb6fe6a7db62085e65460f3 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Thu, 30 Nov 2017 16:31:25 +1100 Subject: gard: Fix max instance count There's an entire byte for the instance count rather than a nibble. Only barf if the instance number is beyond 255 rather than 16. Signed-off-by: Oliver O'Halloran Signed-off-by: Stewart Smith --- external/gard/gard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'external') diff --git a/external/gard/gard.c b/external/gard/gard.c index 5a57415..d7a0876 100644 --- a/external/gard/gard.c +++ b/external/gard/gard.c @@ -340,9 +340,9 @@ int parse_path(const char *str, struct entity_path *parsed) return -1; } - if (instance > 15 || instance < 0) { + if (instance > 255 || instance < 0) { fprintf(stderr, - "Instance %ld is invalid. Must be 0 to 15\n", + "Instance %ld is invalid. Must be 0 to 255\n", instance); return -1; } -- cgit v1.1