Thanks for addressing this issue! BTW -- you (AFNI hackers) are using an alternative "pattern" for this issue at other places... but suprisingly can't locate it now so I must have dreamed it up... Citing from [
lists.debian.org]
This example sprintf() call could be fixed as follows:
-sprintf(buf, "%s plus %d", buf, k);
+sprintf(buf + strlen(buf), " plus %d", k);
Similarly, an invalid snprintf() call could be fixed as follows:
-snprintf(buf, buflen, "%s plus %d", buf, k);
+snprintf(buf + strlen(buf), buflen - strlen(buf), " plus %d", k);