[eso-midas] 16/16: Decrease string length in C part

Ole Streicher olebole at moszumanska.debian.org
Wed Mar 25 14:16:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository eso-midas.

commit b40edba8eadabdb0a1f2b6f233c3a810c207ed15
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed Mar 25 14:58:45 2015 +0100

    Decrease string length in C part
---
 debian/patches/fix_ftoc.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/patches/fix_ftoc.patch b/debian/patches/fix_ftoc.patch
index 9f3d9e3..9be4c91 100644
--- a/debian/patches/fix_ftoc.patch
+++ b/debian/patches/fix_ftoc.patch
@@ -36,3 +36,14 @@ Description: Fix off-by-one Fortran/C string problem
        CHARACTER*9   S1
  C 
        REAL    FF
+--- a/system/ftoc-new/ftoc_generic.fc
++++ b/system/ftoc-new/ftoc_generic.fc
+@@ -251,7 +251,7 @@
+    n = lenloc2;
+    }
+ 
+-*(adrptr+n) = '\0';
++*(adrptr+n-1) = '\0';
+ printf("C: in TTT2, string = %s|\n",adrptr);
+ 
+ return 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git



More information about the debian-science-commits mailing list