Parcourir la source

dpkg: Use m_strdup() instead of strdup()

Guillem Jover il y a 10 ans
Parent
commit
4b5023759c
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      debian/changelog
  2. 1 1
      src/archives.c

+ 1 - 0
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
     could mess up the file queue in some circumstances and leave behind
     files in the filesystem as «pathname».dpkg-new after configuration
     files in the filesystem as «pathname».dpkg-new after configuration
     and without traces of the files in the dpkg database. Closes: #823288
     and without traces of the files in the dpkg database. Closes: #823288
+  * Use m_strdup() instead of strdup() in dpkg recursive installation code.
   * Packaging:
   * Packaging:
     - Bump Standards-Version to 3.9.8 (no changes needed).
     - Bump Standards-Version to 3.9.8 (no changes needed).
 
 

+ 1 - 1
src/archives.c

@@ -1483,7 +1483,7 @@ archivefiles(const char *const *argv)
           continue;
           continue;
 
 
         arglist = m_realloc(arglist, sizeof(char *) * (nfiles + 1));
         arglist = m_realloc(arglist, sizeof(char *) * (nfiles + 1));
-        arglist[nfiles++] = strdup(nodename);
+        arglist[nfiles++] = m_strdup(nodename);
       }
       }
 
 
       treewalk_close(tree);
       treewalk_close(tree);