Description: Fix FTBFS on 32-bit architectures
Author: Fabian Mauchle <fabian.mauchle@switch.ch>
Origin: https://github.com/radsecproxy/radsecproxy/commit/4c259c9e1edbf31b1a02fa401cd4a2b4d9032d66
Bug: https://github.com/radsecproxy/radsecproxy/issues/39

--- a/tests/t_rewrite.c
+++ b/tests/t_rewrite.c
@@ -412,10 +412,10 @@ main (int argc, char *argv[])
         struct modattr *mod = malloc(sizeof(struct modattr));
         regex_t regex;
 
-        for (i=0; i<253; i+=20){
+        for (i=0; i<253-20; i+=20){
             memcpy(value2+i, value, 20);
         }
-        memcpy(value2+i-20, "and another13\0", 14);
+        memcpy(value2+i, "and another13\0", 14);
 
         mod->t = 1;
         mod->regex = &regex;
