# HG changeset patch # User Andre Heinecke # Date 1396453190 0 # Node ID 57867a523dcf0811064f451ab48d769ed4d9c79b # Parent 5ab445e6a4da0790478bbb99dcf140bb483af5cb Do not cut off the last character of the line. (next-cur does not include \n) diff -r 5ab445e6a4da -r 57867a523dcf common/listutil.c --- 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); }