diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-13 21:26:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-13 21:26:30 +0200 |
commit | d55f4f3f92f56f76bdd06192d6a2ef3ee9fe4772 (patch) | |
tree | 683467af7c400cb0397edab27643ce79695898a5 /src/reply-password.c | |
parent | 8254a475893e746eb667c0666a69a871d7fc4732 (diff) |
ask-password: always send final NUL char
Diffstat (limited to 'src/reply-password.c')
-rw-r--r-- | src/reply-password.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |