summaryrefslogtreecommitdiff
path: root/libre/shntool/shntool-3.0.10-large-size.diff
diff options
context:
space:
mode:
authorIsaac David <isacdaavid@isacdaavid.info>2016-05-28 15:03:39 -0500
committerIsaac David <isacdaavid@isacdaavid.info>2016-05-28 15:03:39 -0500
commit7f89a03874669669e1082e00154dc8e02567e3fa (patch)
treee485fdfd79eacf3ffbf4182fff755536ec51128d /libre/shntool/shntool-3.0.10-large-size.diff
parent481d4aa0eb656747987042ad7c59ae783ab24ed8 (diff)
shntool: minor fix
Diffstat (limited to 'libre/shntool/shntool-3.0.10-large-size.diff')
-rw-r--r--libre/shntool/shntool-3.0.10-large-size.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/shntool/shntool-3.0.10-large-size.diff b/libre/shntool/shntool-3.0.10-large-size.diff
new file mode 100644
index 000000000..539c7fb70
--- /dev/null
+++ b/libre/shntool/shntool-3.0.10-large-size.diff
@@ -0,0 +1,22 @@
+diff -aur shntool-3.0.10-clean/src/core_fileio.c shntool-3.0.10-size/src/core_fileio.c
+--- shntool-3.0.10-clean/src/core_fileio.c 2009-03-11 17:18:01.000000000 +0000
++++ shntool-3.0.10-size/src/core_fileio.c 2012-08-11 17:20:14.000000000 +0100
+@@ -110,10 +110,16 @@
+ buf[4] = 0;
+
+ if (be_val)
+- *be_val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3];
++ *be_val = (((unsigned long)buf[0]) << 24)
++ | (((unsigned long)buf[1]) << 16)
++ | (((unsigned long)buf[2]) << 8)
++ | ((unsigned long)buf[3]);
+
+ if (le_val)
+- *le_val = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
++ *le_val = (((unsigned long)buf[3]) << 24)
++ | (((unsigned long)buf[2]) << 16)
++ | (((unsigned long)buf[1]) << 8)
++ | ((unsigned long)buf[0]);
+
+ if (tag_val)
+ tagcpy(tag_val,buf);