Package: staden-io-lib / 1.14.11-6

fix_non_x86.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: James Bonfield <jkb@sanger.ac.uk>
Date: Wed, 28 Nov 2018 16:46:36 +0000
Origin: https://github.com/jkbonfield/io_lib/commit/faa2a8a71129a94e4911f4d1231048aa259f8a1b
Bug-Debian: https://bugs.debian.org/912451
Subject: [PATCH] Bug fix to scramble on systems not defining ALLOW_UAC.

(Mostly non-Intel platforms.)
---
 io_lib/bam.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/io_lib/bam.c b/io_lib/bam.c
index 387dcec..55d0919 100644
--- a/io_lib/bam.c
+++ b/io_lib/bam.c
@@ -1751,11 +1751,11 @@ int bam_get_seq(bam_file_t *b, bam_seq_t **bsp) {
 	    return -1;
     }
 
-    if (!*bsp || blk_size+24 > (*bsp)->alloc) {
-	if (!(bs = realloc(*bsp, blk_size+24)))
+    if (!*bsp || blk_size+44 > (*bsp)->alloc) {
+	if (!(bs = realloc(*bsp, blk_size+44)))
 	    return -1;
 	*bsp = bs;
-	(*bsp)->alloc = blk_size+24;
+	(*bsp)->alloc = blk_size+44;
 	(*bsp)->blk_size = blk_size;
     }
     bs = *bsp;