summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-12-13 18:15:06 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-12-13 18:15:06 +0100
commit9c226f9e36c1cdc5ff2774302509f4a1a401152c (patch)
tree83903f74fa69113391186407acb6c305fe127519
parented4a5301aeacc0df6e2a768edc68057342e2ded6 (diff)
downloadpjctl-9c226f9e36c1cdc5ff2774302509f4a1a401152c.tar.gz
pjctl-9c226f9e36c1cdc5ff2774302509f4a1a401152c.tar.bz2
pjctl-9c226f9e36c1cdc5ff2774302509f4a1a401152c.zip
A result is also valid with 7 chars
There are projectors that result with empty data..
-rw-r--r--src/pjctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pjctl.c b/src/pjctl.c
index 1722800..66dbd2b 100644
--- a/src/pjctl.c
+++ b/src/pjctl.c
@@ -243,7 +243,7 @@ handle_data(struct pjctl *pjctl, char *data, int len)
{
struct queue_command *cmd;
- if (len < 8 || len > PJLINK_TERMINATOR) {
+ if (len < 7 || len > PJLINK_TERMINATOR) {
fprintf(stderr, "error: invalid packet length: %d: data: %*s\n",
len, len, data);
return -1;