Commit 8e1f5a53 8e1f5a53201184ff42348f9d4cf230f765d1441d by Sergey Poznyakoff

Bugfixes.

* examples/echosrv.c: Fix typo.
* libmailutils/sockaddr/url.c: Likewise.
* mh/mhn.c: Likewise.
* mh/folder.c (roll_back): Fix conditional.
* THANKS: Update.
1 parent e1e999de
......@@ -21,6 +21,7 @@ Jordi Mallach <jordi@sindominio.net>
Kidong Lee <briankdlee@yahoo.com>
Kostas Zorbadelos <kzorba@otenet.gr>
Matthew Whitworth <matthew@okcomputer.org>
maks <maksqwe1@ukr.net>
Neil R. Ormos <ormos@ormos.org>
Olivier Bornet <Olivier.Bornet@smartdata.ch>
Robby Villegas <robby.villegas@gmail.com>
......
......@@ -140,7 +140,7 @@ create_server (char *arg)
exit (1);
}
memset (&hints, sizeof(hints), 0);
memset (&hints, 0, sizeof(hints));
hints.flags = MU_AH_PASSIVE;
hints.socktype = SOCK_STREAM;
hints.protocol = IPPROTO_TCP;
......
......@@ -62,7 +62,7 @@ mu_sockaddr_from_url (struct mu_sockaddr **retval, mu_url_t url,
memcpy (&hints, mh, sizeof (hints));
else
{
memset (&hints, sizeof(hints), 0);
memset (&hints, 0, sizeof(hints));
hints.family = AF_UNSPEC;
hints.socktype = SOCK_STREAM;
hints.protocol = IPPROTO_TCP;
......
......@@ -720,9 +720,9 @@ roll_back (const char *folder_name, struct pack_tab *pack_tab, size_t i)
if (i == 0)
return;
start = i - 1;
start = --i;
mu_error (_("rolling back changes..."));
while (--i >= 0)
do
if (pack_rename (pack_tab + i, 1))
{
mu_error (_("CRITICAL ERROR: Folder `%s' left in an inconsistent state, because an error\n"
......@@ -736,6 +736,7 @@ roll_back (const char *folder_name, struct pack_tab *pack_tab, size_t i)
mu_error (_("You will have to fix it manually."));
exit (1);
}
while (i-- > 0);
mu_error (_("folder `%s' restored successfully"), folder_name);
}
......
......@@ -2808,7 +2808,7 @@ mhn_header (mu_message_t msg, mu_message_t omsg)
mu_message_get_part (omsg, 1, &part);
else
part = omsg;
if (part);
if (part)
{
mu_header_t parthdr = NULL;
char *typestr, *typeargs;
......