]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Fix off-by-one bug in fixup_info_string().
authorAndre Noll <maan@systemlinux.org>
Sun, 30 Aug 2009 11:20:14 +0000 (13:20 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 30 Aug 2009 11:20:14 +0000 (13:20 +0200)
This caused the chunk time not being properly displayed due to a
missing newline in the status output.

aft.c

diff --git a/aft.c b/aft.c
index 00e38d76b65aed7805aca16d363e7a8a92610525..5fb0480707e094327688c5aad7adeddec35879a8 100644 (file)
--- 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);