Don't accept over 64 probes.

The code is limited to 64 probes for now, so don't accept setting
the probe limit to higher than that.

See bug 194.
This commit is contained in:
Bert Vermeulen 2013-11-26 22:20:30 +01:00
parent e4c8a4d7cb
commit 6c57446d41
1 changed files with 3 additions and 0 deletions

View File

@ -318,6 +318,9 @@ static int init(struct sr_input *in, const char *filename)
if (num_probes < 1) {
release_context(ctx);
return SR_ERR;
} else if (num_probes > 64) {
sr_err("No more than 64 probes supported.");
return SR_ERR;
}
}