Hi Bill, > Make sure we don't read before the buffer. did you come to a conclusion about whether *st_size = to.len; (a few lines later) is correct, or whether it should be *st_size = to.len + 1; (since an extra character was appended to the buffer)? Thanks, Duncan.