 # DEALINGS IN THE SOFTWARE.
 diff -uprN -x '*_Jul11' -x 'ibm_*' -x 'Numer*' -x a.out -x '#*#' -x version.h -x q -x '*~' -x '*.c.*' -x '*.a' -x .git -x .svn -x '*.MIT' -x '*.swp' -x 'svn-commit.tmp*' 00_svn_r2/samtools-2015-08-19/samtools/bam_sam2bam.c ../files/samtools/bam_sam2bam.c
 --- 00_svn_r2/samtools-2015-08-19/samtools/bam_sam2bam.c	1970-01-01 09:00:00.000000000 +0900
-+++ ../files/samtools/bam_sam2bam.c	2017-01-24 18:36:11.095730042 +0900
++++ ../files/samtools/bam_sam2bam.c	2017-03-17 15:43:17.450837623 +0900
 @@ -0,0 +1,7982 @@
 +#define _BAM_SAM2BAM_C
 +/*  bam_sam2bam.c

+    uint64_t qnid1 = bamptr_get_qnameid(bamp1);
+    uint64_t qnid2 = bamptr_get_qnameid(bamp2);
+    if (qnid1 != qnid2) {
+      char str1[128], str2[128];
+      long len1, len2;
+      get_qname(qnid1,str1,sizeof(str1),&len1);
+      get_qname(qnid2,str2,sizeof(str2),&len2);

+//	4. QNAME
+  bamptr_t *u_bamp1 = NULL;
+  bamptr_t *u_bamp2 = NULL;
+  char str1[256], str2[256];
+  long len1, len2;
+  uint64_t qnid1, qnid2;
+  if (0 == (flag1 & BAM_FUNMAP)) {
