>Apparently, the implementation of that function contains a bug in the>memory handling.
oops - found it. String allocation was 1 byte short. Thanks.
Robert