commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-3.1-3-g89fb41d


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-3.1-3-g89fb41d
Date: Wed, 14 Dec 2016 14:59:25 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=89fb41d0170724c49d23c0887d5f47026b221898

The branch, master has been updated
       via  89fb41d0170724c49d23c0887d5f47026b221898 (commit)
      from  723ade1ac72fa2635d7aa04f6a118cefce44f15a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 89fb41d0170724c49d23c0887d5f47026b221898
Author: Sergey Poznyakoff <address@hidden>
Date:   Wed Dec 14 16:55:33 2016 +0200

    Bugfixes
    
    * libproto/imap/tag.c: Initialize allocated slot to 0
    * mu/imap.c: Fix number of elements to allocate

-----------------------------------------------------------------------

Summary of changes:
 libproto/imap/tag.c |    2 ++
 mu/imap.c           |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libproto/imap/tag.c b/libproto/imap/tag.c
index 73a0eda..9c3674f 100644
--- a/libproto/imap/tag.c
+++ b/libproto/imap/tag.c
@@ -40,6 +40,8 @@ _mu_imap_tag_incr (mu_imap_t imap)
          if (!np)
            return ENOMEM;
          imap->tag_buf = np;
+         imap->tag_buf[imap->tag_len] = 0;
+         
          sp = realloc (imap->tag_str,
                        (imap->tag_len + 2) * sizeof imap->tag_str[0]);
          if (!sp)
diff --git a/mu/imap.c b/mu/imap.c
index d19a2e3..cc5da3f 100644
--- a/mu/imap.c
+++ b/mu/imap.c
@@ -588,7 +588,7 @@ com_connect (int argc, char **argv)
   if (!status)
     {
       connect_argc = argc;
-      connect_argv = mu_calloc (argc, sizeof (*connect_argv));
+      connect_argv = mu_calloc (argc + 1, sizeof (*connect_argv));
       for (i = 0; i < argc; i++)
        connect_argv[i] = mu_strdup (argv[i]);
       connect_argv[i] = NULL;


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]