diff --git a/demos/sign.c b/demos/sign.c index dafbdb28..e728694a 100644 --- a/demos/sign.c +++ b/demos/sign.c @@ -43,9 +43,8 @@ sign(void) puts("\n"); /* read input */ - mlen = prompt_input("a message", (char*)m, - sizeof m - crypto_sign_BYTES, 1); - putc('\n', stdout); + mlen = prompt_input("a message", (char*)m, sizeof m, 1); + putchar('\n'); puts("Notice the message has no prepended padding"); print_hex(m, mlen);