On 07/23/2010 04:19 PM, Andrew Eikum wrote: > + memset(out, 0, sizeof(out)); It's usually better to fill it with something other than '0'. Checking later for '0' could mean that either the rest of the buffer is indeed untouched or is cleared/zeroed. -- Cheers, Paul.