summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-02-15 04:13:39 +0100
committerGuillem Jover <guillem@debian.org>2019-02-23 17:57:18 +0100
commit5973aa2f9079545739fa52ecdf1577676313d6fa (patch)
treeaff8d3f291e7a8cc6f809b754fc9832fa725f6a0
parent3528fe345c66dc8cb8a591594dfa53d57b366499 (diff)
downloaddpkg-5973aa2f9079545739fa52ecdf1577676313d6fa.tar.gz
libdpkg: Include <string.h> in pager.c
Closes: #922212 Reported-by: Y <sevener@cock.li>
-rw-r--r--debian/changelog2
-rw-r--r--lib/dpkg/pager.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index e8ba19d75..29e6c0983 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -58,6 +58,8 @@ dpkg (1.19.5) UNRELEASED; urgency=medium
- libdpkg: Add new dpkg_has_error() function.
- libdpkg: Move status names from parse errors to arguments.
- libdpkg: Use va_arg copy instead of the original on a vasprintf() call.
+ - libdpkg: Include <string.h> in pager.c.
+ Reported by Y <sevener@cock.li>. Closes: #922212
* Build system:
- Check whether this dist is a release, based only on the version format.
This will avoid having to do a two staged release to get a proper perl
diff --git a/lib/dpkg/pager.c b/lib/dpkg/pager.c
index b0e54101e..4eab2f09e 100644
--- a/lib/dpkg/pager.c
+++ b/lib/dpkg/pager.c
@@ -25,6 +25,7 @@
#include <stdbool.h>
#include <stdlib.h>
+#include <string.h>
#include <signal.h>
#include <unistd.h>