chiark / gitweb /
rsa: Strip a couple of spurious newlines from pub key messages
[secnet.git] / rsa.c
diff --git a/rsa.c b/rsa.c
index 3f2fbd158cc4d07940c598d3fa0629c852ac3ac9..b633f72d9eca65aae395609688a7596bdf7f47ed 100644 (file)
--- 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)