From d55f4f3f92f56f76bdd06192d6a2ef3ee9fe4772 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 13 Apr 2011 21:26:30 +0200 Subject: ask-password: always send final NUL char --- src/reply-password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reply-password.c') diff --git a/src/reply-password.c b/src/reply-password.c index 575a437645..bd55e65f3c 100644 --- a/src/reply-password.c +++ b/src/reply-password.c @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) { } truncate_nl(packet+1); - length = strlen(packet+1) + 1; + length = 1 + strlen(packet+1) + 1; } else if (streq(argv[1], "0")) { packet[0] = '-'; length = 1; -- cgit v1.2.3-54-g00ecf