Csound Csound-dev Csound-tekno Search About

[Cs-dev] "Character" flaw in argdecode.c?

Date2009-09-17 13:02
FromAndy Fillebrown
Subject[Cs-dev] "Character" flaw in argdecode.c?
AttachmentsNone  None  

In argdecode.c, around line 930, (right after the start of the "do {" loop), 'argv' is prefix incremented instead of postfix incremented.  With it being prefix incremented I have to insert a space in my own 'argv' when calling csoundCompile() -- which is a bit strange and took a considerable amount of time when figuring it out why calling csound from the command line was producing different results than calling from the API directly.  I would also assume that this is the reason the .csoundrc files all start with a space, too, which can make for a nastily subtle bug if they're edited "incorrectly".  Since it doesn't appear that changing it to a po stfix increment (or fixing it some other way) will be a huge problem, can this be fixed for the next release?

Cheers,
~ andy.f