Csound Csound-dev Csound-tekno Search About

[Cs-dev] ..and more

Date2006-06-03 19:52
Fromjpff@codemist.co.uk
Subject[Cs-dev] ..and more
In opcodes/fout.c function i_infile I think that the lines about
723-728 break the rules.

          *++cfp = '\0';        /* Must terminate string */
          *(args[j]) = (MYFLT) atof(cf);          ****************************
          if (cc == EOF) {
            fseek(fp, 0, SEEK_SET);
            break;
          }

The marked line writes to an argument, and in so doing may change a
constant that is used elsewhere.  Opcodes must not change arguments in
any circumstances
==John ffitch


_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-06-06 08:52
FromIstvan Varga
SubjectRe: [Cs-dev] ..and more
AttachmentsNone