From a98773f4b05a392dd3fdf74a3818844e5c0f2ce2 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 17 Nov 1996 07:11:00 +0000 Subject: [PATCH] (otp_print_stddict): Get right of last space. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1016 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/otp_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/otp/otp_print.c b/lib/otp/otp_print.c index 6fe59e952..e625a0a52 100644 --- a/lib/otp/otp_print.c +++ b/lib/otp/otp_print.c @@ -342,7 +342,7 @@ otp_print_stddict (OtpKey key, char *str) str = add_word (str, ((key[4] & 0x7F) << 4) | (key[5] >> 4)); str = add_word (str, ((key[5] & 0x0F) << 7) | (key[6] >> 1)); str = add_word (str, ((key[6] & 0x01) << 10) | (key[7] << 2) | sum); - *str = '\0'; + *--str = '\0'; } void