From 8e4308946bcdb5e62380cff7373d558518745eec Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 23 Nov 2019 23:38:58 +0000 Subject: [PATCH] rsa: Strip a couple of spurious newlines from pub key messages Neither cfgfatal nor slilog want a trailing newline. There are lots of this kind of problem in secnet. I'm just fixing two I noticed here, in code I touched. Signed-off-by: Ian Jackson --- rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsa.c b/rsa.c index 3f2fbd1..b633f72 100644 --- a/rsa.c +++ b/rsa.c @@ -356,10 +356,10 @@ static struct rsapub *rsa_loadpub_core(RSAPUB_BNS(RSAPUB_LOADCORE_DEFBN) #define RSAPUB_LOADCORE_GETBN(ix,en,what) \ if (mpz_init_set_str(&st->en,en##s,10)!=0) { \ LDPUBFATAL(&en##_loc, what " \"%s\" is not a " \ - "decimal number string\n",en##s); \ + "decimal number string",en##s); \ } \ if (mpz_sizeinbase(&st->en, 256) > RSA_MAX_MODBYTES) { \ - LDPUBFATAL(&en##_loc, "implausibly large " what "\n"); \ + LDPUBFATAL(&en##_loc, "implausibly large " what); \ } RSAPUB_BNS(RSAPUB_LOADCORE_GETBN) -- 2.30.2