Re: Compile error in 3.0

Jordi Mallach <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Organization SinDominio
Message-ID <[email protected]>
On Fri, Dec 09, 2016 at 01:02:24PM +0100, Jordi Mallach wrote:
> Additionally, I'm attaching some spelling fixes.
>        MAILVAR_TYPEMASK (mailvar_type_boolean),
> -      N_("allow to edit message headers while composing") },
> +      N_("allow editting message headers while composing") },
>      { { "emptystart", },
>        MAILVAR_TYPEMASK (mailvar_type_boolean),

One good way of looking like an idiot is introducing a typo in your
typo fix. Thanks to Neil R. Ormos who pointed this off-list. :)

Jordi
-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/

_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils
0001-Fix-spelling-errors.patch (text/x-diff, 2.1 KB)
From 9ae1a74bd8e67cc97d18f1d6ed41745e392a2082 Mon Sep 17 00:00:00 2001
From: Jordi Mallach <[email protected]>
Date: Fri, 9 Dec 2016 12:17:03 +0100
Subject: [PATCH 1/2] Fix spelling errors.

---
 examples/nntpclient.c | 2 +-
 imap4d/uid.c          | 2 +-
 mail/mailvar.c        | 2 +-
 mu/shell.c            | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/nntpclient.c b/examples/nntpclient.c
index 1e53b864..4b3da10b 100644
--- a/examples/nntpclient.c
+++ b/examples/nntpclient.c
@@ -953,7 +953,7 @@ com_info (char *arg)
 
   if (!printed)
     {
-      printf ("No commands match `%s'.  Possibilties are:\n", arg);
+      printf ("No commands match `%s'.  Possibilities are:\n", arg);
 
       for (i = 0; commands[i].name; i++)
 	{
diff --git a/imap4d/uid.c b/imap4d/uid.c
index 97f8088c..bc5d7b58 100644
--- a/imap4d/uid.c
+++ b/imap4d/uid.c
@@ -49,7 +49,7 @@ imap4d_uid (struct imap4d_session *session,
     rc = imap4d_search0 (tok, 1, &err_text);
   else
     {
-      err_text = "Uknown uid command";
+      err_text = "Unknown uid command";
       rc = RESP_BAD;
     }
   return io_completion_response (command, rc, "%s %s", cmd, err_text);
diff --git a/mail/mailvar.c b/mail/mailvar.c
index 803f32cc..4d46e1d2 100644
--- a/mail/mailvar.c
+++ b/mail/mailvar.c
@@ -121,7 +121,7 @@ struct mailvar_symbol mailvar_tab[] =
       N_("input message is terminated with a dot alone on a line") },
     { { "editheaders", },
       MAILVAR_TYPEMASK (mailvar_type_boolean),
-      N_("allow to edit message headers while composing") },
+      N_("allow editing message headers while composing") },
     { { "emptystart", },
       MAILVAR_TYPEMASK (mailvar_type_boolean),
       N_("start interactive mode if the mailbox is empty") },
diff --git a/mu/shell.c b/mu/shell.c
index ff4bd055..276057bf 100644
--- a/mu/shell.c
+++ b/mu/shell.c
@@ -226,7 +226,7 @@ shell_help (int argc, char **argv)
 	print_comtab (mu_strout, com);
       else
 	{
-	  mu_printf ("No commands match `%s'.  Possibilties are:\n", name);
+	  mu_printf ("No commands match `%s'.  Possibilities are:\n", name);
 	  list_commands (shell_comtab, name);
 	}
     }
-- 
2.11.0
0002-Fix-build-when-building-with-Werror-Wformat-security.patch (text/x-diff, 737 B)
From ed60c58c35735b3c524d41baf0ab9124ed169c41 Mon Sep 17 00:00:00 2001
From: Jordi Mallach <[email protected]>
Date: Fri, 9 Dec 2016 12:17:44 +0100
Subject: [PATCH 2/2] Fix build when building with -Werror -Wformat-security.

---
 libmailutils/string/wordsplit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmailutils/string/wordsplit.c b/libmailutils/string/wordsplit.c
index b570ccf1..bdf6d352 100644
--- a/libmailutils/string/wordsplit.c
+++ b/libmailutils/string/wordsplit.c
@@ -2335,7 +2335,7 @@ mu_wordsplit_perror (struct mu_wordsplit *wsp)
       break;
 
     default:
-      wsp->ws_error (mu_wordsplit_strerror (wsp));
+      wsp->ws_error ("%s", mu_wordsplit_strerror (wsp));
     }
 }
 
-- 
2.11.0
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6BdUhsApKYN8KGoWJVAvb8vjywQFAlhK4QgACgkQJVAvb8vj
ywTgrhAAiYffwPLfjj0FoypVcgaUp9QC3qKcPE18k5D/k5m8ohQ0IAkkD/hE5Ujp
a65HArtOrbo/FnKIrWaZ1rKmuXYC45EvTTqoDCNmqJmwCq724LTAeO5/53Fr1xbG
Bx/M/75cs39dEjULlH1U5ghkt/cFFbEEMO2gkOnJ/YuMPputdc51XTg7frrFS14b
mDG67r6ThunmxZzYK1NR2ZevtYMHyOi77ACKbIwxxZWly5TrAD4vd0xH9LSqqT+E
FjD4O+EiqXn2M3Ko5yJ5eKpI2zFa4gauf8LmGrMC8+2Aza5hwtylaUZjRDNZirgX
XLdlYYAaUixG2G+wAtT7FqYqSiDMRuHie9rpkMoWrAbKyYB6fa+bFvqOm3xx39Zb
d6zbYv1fGvOmelP6gLheQwL1A90wHkm8Ws7hut21ISwxAcRHbEaG1NfMPsSo4EnB
KbNkk2G08ktoB7rGUc+Vm6Tcc7tHjOJpedAZ3PME/I2NRW5/H5ZySDKOlRA5u4C9
0rzVkSqsQjAnU7g3orrm4FpvL0vOAQIsV7qc15tIJ0bMHgwyymVY9SOkmayQNwDW
iJgJ3zbsjhZrRBtUyb+IN/bhhWH8LSCP5ziJNn2rFf8yhcs5rSP5QrNIH8aIUhx7
UY/kxiEDB0tTX9p3gv2zz+nStRNztidn+OggGMbEEEIcgpOjL9I=
=hY7U
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.