> Further check: does that mean that in a plugin > > ppsv->SetVar(LPSTR var, LPSTR val) > > can properly set a variable to a string that contians a \x00? I > assume not,
Correct, it will not work, since strcpy and strlen may be used as part of settting. > > In which case, any cance of a > > ppsv->SetVar(LPSTR var, LPSTR val, int iCount)? > > which I guess you'd implement with memcpy? I cannot overload, but will look at a ppsv->SetBuf. You should be able to emulate with pvar = ppsv->GetVarAddr(szVarName) if (pvar && _msize(pvar)>=iCount) memcpy(pvar, val, iCount) What is missing here is automatic increase in size of pvar to accomodate icount bytes, if needed. I will look at maybe doing the setbuf to accomodate this. ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/JV_rlB/TM --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
