diff common/listutil.c @ 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 881ce5126f07
children f6ce186cebc2
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/