[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-anubis] Anubis reads '.signatur' instead of '.signature' (patch inl
From: |
Marcel van der Boom |
Subject: |
[bug-anubis] Anubis reads '.signatur' instead of '.signature' (patch inline) |
Date: |
Fri, 12 Dec 2014 18:51:16 +0100 |
Hi,
I'm using anubis 4.2 (running from the git repository) and for as long
as I can remember Anubis reads the file $HOME/.signatur instead of
$HOME/.signature.
The following patch resolves that behaviour, but I haven't dived in to
check if this is actually the right fix.
diff --git a/src/mime.c b/src/mime.c
index 3fc1e3c..625d272 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -96,7 +96,7 @@ message_append_signature_file (MESSAGE msg)
n = strlen (homedir) + strlen (signature_file) + 2;
signature_path = xmalloc (n);
- snprintf (signature_path, n - 1, "%s/%s", homedir, signature_file);
+ snprintf (signature_path, n, "%s/%s", homedir, signature_file);
message_append_text_file (msg, signature_path, "-- \n");
free (signature_path);
Best regards,
Marcel van der Boom
PS
I noticed Anubis is not yet unicode/utf-8 capable (my normal .signature
contains some unicode characters) Are there plans to include support
for that?
--
pgpLV8JYneKnn.pgp
Description: PGP signature
- [bug-anubis] Anubis reads '.signatur' instead of '.signature' (patch inline),
Marcel van der Boom <=