aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/psmq-pub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/psmq-pub.c b/src/psmq-pub.c
index 0b9aa3d..63f0917 100644
--- a/src/psmq-pub.c
+++ b/src/psmq-pub.c
@@ -165,7 +165,7 @@ static void send_stdin
/* now we have full line in buffer, ship
* it. -1 is just so publish don't send
* newline character */
- if (publish(psmq, topic, line, strlen(line) + 1, prio) != 0)
+ if (publish(psmq, topic, line, strlen(line) - 1, prio) != 0)
return;
}
}