drop_privileges_or_die(): Check return value of setuid().
[paraslash.git] / 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);