AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
September 21, 2013 07:10PM
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);
Subject Author Posted

undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 19, 2013 10:45PM

Re: undefined behavior of sprintf(buf, "%s", buf)

Bob Cox September 20, 2013 06:39AM

Re: undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 20, 2013 02:21PM

Re: undefined behavior of sprintf(buf, "%s", buf)

Bob Cox September 20, 2013 02:42PM

Re: undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 21, 2013 07:10PM

Re: undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 21, 2013 11:23AM