diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-05 11:08:19 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-05 11:08:19 +0100 |
commit | 9eb80c522892e425424da90d7c1417b6594f319e (patch) | |
tree | 0e1463af116417b50398c5833b94b94839c1af4c /src | |
parent | 5542125f4c7b8cbb5643b8e61ffe5fc4f3250dc7 (diff) | |
download | pjctl-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/pjctl.c | 2 |
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; } |