Valgrind reported an "Invalid write of size 1".
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8314
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
beg_subst += offset;
end_subst += offset;
}
beg_subst += offset;
end_subst += offset;
}
- memmove(beg_subst + val_len, end_subst, b->used - (end_subst - b->data) + 2); /* move the end of the string a bit further */
+ memmove(beg_subst + val_len, end_subst, b->used - (end_subst - b->data) + 1); /* move the end of the string a bit further */
memmove(beg_subst, value, val_len); /* substitute */
b->used = newused;
// DEBUG1("String is now: %s",b->data);
memmove(beg_subst, value, val_len); /* substitute */
b->used = newused;
// DEBUG1("String is now: %s",b->data);