[Reproducible-commits] [dpkg] 06/24: dpkg: Use m_strdup() instead of strdup()

Niko Tyni ntyni at moszumanska.debian.org
Tue May 3 21:38:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

ntyni pushed a commit to branch ntyni/reproducible_builds
in repository dpkg.

commit 4b5023759c9ed35581e3174c6fce09ac8be8589f
Author: Guillem Jover <guillem at debian.org>
Date:   Tue May 3 19:14:31 2016 +0200

    dpkg: Use m_strdup() instead of strdup()
---
 debian/changelog | 1 +
 src/archives.c   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e070e58..99e9a40 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ dpkg (1.18.6) UNRELEASED; urgency=medium
     could mess up the file queue in some circumstances and leave behind
     files in the filesystem as «pathname».dpkg-new after configuration
     and without traces of the files in the dpkg database. Closes: #823288
+  * Use m_strdup() instead of strdup() in dpkg recursive installation code.
   * Packaging:
     - Bump Standards-Version to 3.9.8 (no changes needed).
 
diff --git a/src/archives.c b/src/archives.c
index f66e818..44753bd 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -1483,7 +1483,7 @@ archivefiles(const char *const *argv)
           continue;
 
         arglist = m_realloc(arglist, sizeof(char *) * (nfiles + 1));
-        arglist[nfiles++] = strdup(nodename);
+        arglist[nfiles++] = m_strdup(nodename);
       }
 
       treewalk_close(tree);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list