aboutsummaryrefslogtreecommitdiffstats
path: root/community/sg3_utils/unsigned-int.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/sg3_utils/unsigned-int.patch')
-rw-r--r--community/sg3_utils/unsigned-int.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/sg3_utils/unsigned-int.patch b/community/sg3_utils/unsigned-int.patch
new file mode 100644
index 00000000000..ca6d8111f07
--- /dev/null
+++ b/community/sg3_utils/unsigned-int.patch
@@ -0,0 +1,15 @@
+Upstream report: https://github.com/hreinecke/sg3_utils/issues/77
+
+diff --git a/src/sg_dd.c b/src/sg_dd.c
+index 9d05c93..7662728 100644
+--- a/src/sg_dd.c
++++ b/src/sg_dd.c
+@@ -2399,7 +2399,7 @@ main(int argc, char * argv[])
+ res = blocks * blk_sz;
+ if (iflag.zero && iflag.ff && (blk_sz >= 4)) {
+ uint32_t pos = (uint32_t)skip;
+- uint off;
++ unsigned int off;
+
+ for (k = 0, off = 0; k < blocks; ++k, off += blk_sz, ++pos) {
+ for (j = 0; j < (blk_sz - 3); j += 4)