http://d.puremagic.com/issues/show_bug.cgi?id=961 ------- Comment #3 from bugzilla at digitalmars.com 2007-08-12 14:33 ------- Ah, I found the problem - for small strings, it's returning a pointer to a local stack variable, which will cause corruption upon function exit. Will fix. --