Fix opt type in dpkg (closes: #118975).
diff --git a/Changelog b/Changelog
index 568852a..41b2358 100644
--- a/Changelog
+++ b/Changelog
@@ -23,6 +23,7 @@
 	    -- Fix tar segfault when include list is empty and exclude list is
 	       not.
 	    -- Fix sed s/$/@/ handling (noted by Joshua Hudson).
+	    -- Fix opt type in dpkg (closes: #118975).
 	* Magick
 	    -- made init run inittab command's in the order they show up
 		in the inittab file (FIFO instead of LIFO).
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 88cf8b8..9a3bff9 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1332,7 +1332,7 @@
 {
 	deb_file_t **deb_file = NULL;
 	status_node_t *status_node;
-	char opt = 0;
+	int opt;
 	int package_num;
 	int dpkg_opt = 0;
 	int deb_count = 0;