summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-12-13 18:15:06 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2014-01-04 16:10:13 +0100
commitcdcfca35b16be9ad95a31f6321fba2632cc9c34d (patch)
treef21091ee1a0c91570c39496b35973419bba353ba
parentec612d8c55d1eded6eb6617b79d3f322bd9ee9e7 (diff)
downloadpjctl-cdcfca35b16be9ad95a31f6321fba2632cc9c34d.tar.gz
pjctl-cdcfca35b16be9ad95a31f6321fba2632cc9c34d.tar.bz2
pjctl-cdcfca35b16be9ad95a31f6321fba2632cc9c34d.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 6b555a0..0a04556 100644
--- a/src/pjctl.c
+++ b/src/pjctl.c
@@ -244,7 +244,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;