summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}