From: Andre Noll Date: Sun, 30 Aug 2009 11:20:14 +0000 (+0200) Subject: Fix off-by-one bug in fixup_info_string(). X-Git-Tag: v0.3.5~10 X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=46fe4817f70aef9b87b82a5539008aaed350be39;p=paraslash.git Fix off-by-one bug in fixup_info_string(). This caused the chunk time not being properly displayed due to a missing newline in the status output. --- diff --git a/aft.c b/aft.c index 00e38d76..5fb04807 100644 --- a/aft.c +++ b/aft.c @@ -1016,7 +1016,7 @@ static int fixup_info_string(char *info_string) if (!t2) return -ERRNO_TO_PARA_ERROR(EINVAL); - end = t2 + strlen(t2) + 1; + end = t2 + strlen(t2); fixup_taginfo(info_string + 16, t1); fixup_taginfo(t1 + 10, t2); fixup_taginfo(t2 + 10, end);