diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-05 11:08:19 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-01-04 15:42:26 +0100 |
commit | f35cc11d24f9955ffaffb80edc90db6279bdc43e (patch) | |
tree | 0e1463af116417b50398c5833b94b94839c1af4c /src/pjctl.c | |
parent | 4e756def51a8af5d914bd5c1cef768753a90c4a8 (diff) | |
download | pjctl-f35cc11d24f9955ffaffb80edc90db6279bdc43e.tar.gz pjctl-f35cc11d24f9955ffaffb80edc90db6279bdc43e.tar.bz2 pjctl-f35cc11d24f9955ffaffb80edc90db6279bdc43e.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/pjctl.c')
-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; } |