Dear Robert,

>>>  SizeNeeded = TBP_GetName(NULL, 0);
>>>  if (SizeNeeded > 0) {
>>>    Buffer = malloc(SizeNeeded);
>>>    CharsCopied = TBP_GetName(Buffer, SizeNeeded);
>>>  }

RR> Based on this I have to assume that we should be returning the
RR> length plus the null character as you are only allocating enough size
RR> for the string and not the null.  Or shouldn't you allocate
RR> SizeNeeded+1?

Zero character is not needed.


-- 
Cheers,
 Stefan                            mailto:[EMAIL PROTECTED]

...A bug in the code is worth two in the documentation


________________________________________________
Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to