changeset 292:57867a523dcf

Do not cut off the last character of the line. (next-cur does not include \n)
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 02 Apr 2014 15:39:50 +0000
parents 5ab445e6a4da
children 3ae8b3ab3eab
files common/listutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common/listutil.c	Wed Apr 02 15:35:12 2014 +0000
+++ b/common/listutil.c	Wed Apr 02 15:39:50 2014 +0000
@@ -252,7 +252,7 @@
       if (strlen(cur) > 3 && (cur[0] == 'I' || cur[0] == 'R') &&
           next - cur > 4)
         {
-          size_t len = (size_t) (next - cur - 4);
+          size_t len = (size_t) (next - cur - 3);
           /* Remove I: or R: at the beginning and \r\n at the end */
           strv_append(&retval, cur + 2, len);
         }

http://wald.intevation.org/projects/trustbridge/