summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-05 11:08:19 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-05 11:08:19 +0100
commit9eb80c522892e425424da90d7c1417b6594f319e (patch)
tree0e1463af116417b50398c5833b94b94839c1af4c
parent5542125f4c7b8cbb5643b8e61ffe5fc4f3250dc7 (diff)
downloadpjctl-9eb80c522892e425424da90d7c1417b6594f319e.tar.gz
pjctl-9eb80c522892e425424da90d7c1417b6594f319e.tar.bz2
pjctl-9eb80c522892e425424da90d7c1417b6594f319e.zip
Use array_size makro in error_status param length check
Just the literal 6 in code is abit hard to unterstand.
-rw-r--r--src/pjctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pjctl.c b/src/pjctl.c
index 8e6b1e5..1b0d295 100644
--- a/src/pjctl.c
+++ b/src/pjctl.c
@@ -694,7 +694,7 @@ error_status_response(struct pjctl *pjctl, struct queue_command *cmd,
if (handle_pjlink_error(param) < 0)
return;
- if (strlen(param) != 6) {
+ if (strlen(param) != ARRAY_SIZE(flags)) {
fprintf(stderr, "invalid message received\n");
return;
}